Identity Manager - ask once a decade for username

224
2
12-13-2018 06:09 AM
AdrianMarsden
Regular Contributor II

Hi

I am using a page derived from this sample, but want the saved credentials never to expire. The only users of the site will be on work ipads that are so locked down, any other security isn't required, but the service needs to be a secure one, plus I use the saved username to filter the secure layer, so they see only their cases.

I have tried adding this

 esriId.credentials[0].expires = 1735689600000

(the time is a date about 10 years away)

To the function that stored the data, but next day I still get challenged.

Any ideas?

Cheers


ACM

0 Kudos
2 Replies
AdrianMarsden
Regular Contributor II

Additional:

I added a console.log(idJson) to the loadcredentials function, and it returns the details, but still I get the login box poping up.  i thought the whole idea was to get away from this.  have i missed something here?

0 Kudos
AdrianMarsden
Regular Contributor II

No answers?  Anyone?  Please! :)

0 Kudos