User Manager State is not passed in after logging
Olivier12345678910 opened this issue · 0 comments
Olivier12345678910 commented
When using signingRedirect
and passing in some state, the state is not set in the callback.
For example:
Callling oidcFacade.signinRedirect({ state: { returnUrl: window.location.href } });
and then trying to read the state in the callback from a HTML template for example:
var config = {
userStore: new Oidc.WebStorageStateStore({ store: window.localStorage }),
};
var mgr = new Oidc.UserManager(config);
mgr.signinRedirectCallback().then(
function (user) {
console.log(user);
});
The user doesn't have the state that was passed in to signinRedirect
, it is set to undefined
. I have tried with response_mode
query and also to set data: {}
with the signinRedirect
.