Identity Manager - ask once a decade for username

466
2
12-13-2018 06:09 AM
AdrianMarsden
Occasional Contributor III

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
Occasional Contributor III

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
Occasional Contributor III

No answers?  Anyone?  Please! 🙂

0 Kudos