Adding to the wish list... anybody figure this one out yet?
When i call generateToken, the javascript console shows a bunch of errors with "esri.config.defaults.io.proxyUrl is not set"
Which is true, that value is null. If use the full IdentityManager class and check that property it's also null. No proxy page in my simple test app. Here's what I've tried so far:
Using the base class:
require IdentityManagerBase
create new IdentityManagerBase
create and add a serverinfo object with exact same values when full IdentityManager is used
call signIn or generateToken
both produce the same error.
Using the full class manually:
require IdentityManager
no https/token layer is added to the map, yet
create and add a serverinfo object with exact same values when full IdentityManager is used automatically
call signIn or generateToken
both produce the same error.
I'm watching fiddler during all this and it doesn't appear that the token request ever gets sent out, so I'd guess there a missing step or something that needs to configured when this is done manually.
The identity manager widget is nice for simple applications but it's not practical for applications that require special logins and access to secure services where these are different auth methods.