Select to view content in your preferred language

Edit Secure Service sample

1096
6
12-28-2011 01:28 PM
RoyceSimpson
Frequent Contributor
I'm having a look at the Edit Secure Service sample and am stumped on how the initial login window is created, initialized and interacts with the IdentityManager instance and then how the  IdentityManager passes token to the intended feature service for loading.  Is all that part of the enabling of the IdentityManager instance or is there code that sets the loginWindowClass property, gets the token, etc., etc.? 

That login window seems pretty customized, so there's gotta be some code around there somewhere.

I'm just not getting the full picture with how this sample works.
Thanks,
-Royce
Tags (2)
0 Kudos
6 Replies
BjornSvensson
Esri Regular Contributor
Is all that part of the enabling of the IdentityManager ...? 


Yes, all you have to do is enable the IdentityManager.  It will take care of prompting users to login for ArcGIS Servers that have been secured using token-based authentication. and then using that token as appropriate.

"The Identity Manager is a singleton class that, when enabled, will manage the credentials for ArcGIS Server resources secured using token-based authentication. Note that only ArcGIS Server versions 10 SP 1 and greater are supported."
http://resourcesbeta.arcgis.com/en/webapis/flex-api/apiref/com/esri/ags/components/IdentityManager.h...
0 Kudos
RoyceSimpson
Frequent Contributor
Yes, all you have to do is enable the IdentityManager.  It will take care of prompting users to login for ArcGIS Servers that have been secured using token-based authentication. and then using that token as appropriate.

"The Identity Manager is a singleton class that, when enabled, will manage the credentials for ArcGIS Server resources secured using token-based authentication. Note that only ArcGIS Server versions 10 SP 1 and greater are supported."
http://resourcesbeta.arcgis.com/en/webapis/flex-api/apiref/com/esri/ags/components/IdentityManager.h...


Wow, ok.  That's great.
0 Kudos
RoyceSimpson
Frequent Contributor
Another question Bjorn, if you don't mind:  Currently I've got token based security working via httpservice and my own custom login window.  The window captures not just the service credentials but also other user info... name, phone no, email address, etc... Can the login window for the IndentifyManager be customized to handle more user input besides the service user/password combo?
0 Kudos
DasaPaddock
Esri Regular Contributor
Royce,

You can set the IdentityManager's loginWindowClass property. It defaults to a class called LoginWindow whose source is available in the skins folder.

See:
http://resourcesbeta.arcgis.com/en/webapis/flex-api/apiref/com/esri/ags/components/IdentityManager.h...
0 Kudos
AlanHammersmith
Occasional Contributor
Hello Dasa,

Do you have an updated link for the the page you posted on the resourcesbeta.arcgis.com page?  I am looking for more information on how to customize the login prompt from the new IdentityManager and I can't seem to find any examples out there.

Thanks,
Alan
0 Kudos
BjornSvensson
Esri Regular Contributor
Do you have an updated link for the the page you posted on the resourcesbeta.arcgis.com page?


The new Flex API resource center is available at http://resources.arcgis.com/en/communities/flex-api/

The specific link for IdentityManager is:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html#sig...
0 Kudos