Hi, I've never made a request here so please forgive me if this is not the correct way to submit an issue or ask for help. I have a new job that is requiring me to include oauth/identity functionality on a new react app (which I'm trying to learn also). I've decided to use your library since it looked straightforward for my needs. After several days of working with it, I realized today that my post_logout_redirect_uri setting is being ignored. I tracked it down after I looked at the code in your AuthContext.tsx file-in particular when it instantiates a UserManager, using the following code:
export const initUserManager = (props: AuthProviderProps): UserManager => {
if (props.userManager) return props.userManager;
const {
authority,
clientId,
clientSecret,
redirectUri,
responseType,
scope,
automaticSilentRenew,
} = props;
return new UserManager({
authority,
client_id: clientId,
client_secret: clientSecret,
redirect_uri: redirectUri,
silent_redirect_uri: redirectUri,
post_logout_redirect_uri: redirectUri,
response_type: responseType || 'code',
scope: scope || 'openid',
loadUserInfo: true,
automaticSilentRenew,
});
};
It only accepts authority,
clientId,
clientSecret,
redirectUri,
responseType,
scope,
automaticSilentRenew
Is there a good reason for this, because the userManager settings object is supposed to take many more params, including the post logout redirect uri. Is this designed on purpose to have the redirect_uri and post_logout_redirect_ui always be the same endpoint?
Or maybe I just don't understand, maybe there's a simple workaround so my app works with this lib. The useAuth hook is all over my components so I'm eager to see if this can be fixed.
Maybe there's a perfectly reasonable answer to it (hopefully). And if so I will be grateful for direction.
Thank you for any input or advice.
Thanks