oidc-client-js icon indicating copy to clipboard operation
oidc-client-js copied to clipboard

UserInfo endpoint only fetched once after signIn

Open sullrich84 opened this issue 4 years ago • 3 comments

Hi,

my userInfo endpoint is only fetched once after signIn. After that, only the token endpoint will be fetched by signinSilent? This looks like a configuration issue to me, as there are no errors observable in console.

signInSilet

My current configuration is:

[...]
scope: 'openid profile',
response_type: 'code',
loadUserInfo: true,
monitorSession: true,
automaticSilentRenew: true,
[...]

Am I missing something here?

sullrich84 avatar Jan 26 '21 05:01 sullrich84

Normally your user's info doesn't change that often, so that's likely why calling userinfo on each token renewal wasn't added.

brockallen avatar Jan 26 '21 14:01 brockallen

Thanks for the reply! I may have similar expectations as @materia2021 in #1115. Can I somehow fetch the userInfo endpoint manually, @brockallen ?

sullrich84 avatar Jan 26 '21 18:01 sullrich84

Yea, I guess you could. But there's not good way to then update the user's profile in the UserManager (other than doing it manually). I have an open issue to add that as a feature.

brockallen avatar Jan 28 '21 20:01 brockallen