Select to view content in your preferred language

How to get username after authentication??

880
5
Jump to solution
06-26-2013 08:11 AM
KomanDiabate
Deactivated User
Hello All,
I am working on an application where I am using the api identityManager to authenticate users stored in ArcGIS Server. I am trying to get the username after users are being authenticated, does anybody has tried to do this? I need to get somehow the authenticated user's username after being authenticated so I can do apply more functionalities to my application. I have so far looked into findCredential() and getCredential() with no luck. Any help will be appreciated..

Thanks.

[ATTACH=CONFIG]25509[/ATTACH]
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
0 Kudos
5 Replies
AnthonyGiles
Honored Contributor
Koman,

After the user signs in, you should be able to call "findCredential" to get the Credential which includes a "userId" property. This is not something I have tried I am just reading the API help:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html

Regards

Anthony
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
KomanDiabate
Deactivated User
Hi Dasa:
Thank you so so much, featurelayer.userid works like a charm. Interesting place to hide the userid.
I truly appreciate your help on this issue.

Thank you.
0 Kudos
AnthonyGiles
Honored Contributor
0 Kudos
KomanDiabate
Deactivated User
Thanks Anthony for the link, I appreciate.

Koman Diabate
0 Kudos