Hi there,
I've followed few sample on OAuth and IdentityManager and successfully implemented it into our internal portal, but each time a user closes the window, he has to authenticate himself again when accessing the application. After inspecting the browser storage data, I've noticed the OAuth info is stored in he sessionStorage rather than localStorage
Once user is authenticated and redirected from ESRI Login Page, I'm using the following function to finalize the login.
if (window.location.hash) {
window.opener.require('esri/kernel').id.setOAuthResponseHash(window.location.hash)
window.close()
}
But how can I tell the IdentityManager to use the localStorage instead of sessionStorage?
Thank you.