Closed Murugananths closed 4 years ago
Hi team... Any update please?
Hi team...have you had a chance looking into this?
Hi Team, Any update please?
I'm using it like this, I'm not sure if it's the right/best way, but it works for me. I hope it helps:
const mgr = new Oidc.UserManager(settings);
const signoutUrl = await mgr.createSignoutRequest({id_token_hint: user.id_token});
window.location.href = signOutUrl.url;
hi @Murugananths
I was having the same problem. One of the things that worked for me, but is a workaround was the following:
In your config/settings add:
prompt: 'login',
It is also possible to use it like this
manager.signinPopup({prompt: 'login'}).then((user) => setUser({ user: user }));
This will prompt the user an login screen instead of signing in the user directly. I hope this helps you.
Thanks team for the information. I will try and let you know if still any issues...
I don't follow the problem. You're saying the token server does not support the end session endpoint?
Hi Team, I was able to log out completely with below coding. When login again it is asking credentials as expected. end_session_endpoint: "https://xxxx.com/xx/v1/connect/endsession
But one more issue have been facing that post log out it is not redirecting to specified postlogouturl (https://localhost:3000/logout.html). When i trying to debug with idsrv code where logout method called twice hence on second call id_session_hint became null and it is redirecting to idsrv login home page which is different from postloguturl. Can you please help on this?
@brockallen ...any update on this?
Check your logs at the STS.
id_token_hint
id_token used to resolve and identify user session & post logout url. that is the reason. you are correct
Hi Team,
I am using oidc client library for authentication in OfficeJs application and below are the scenario's required help.
1) I was able to login and get access token successfully with below code.
auth.ts
2) But when trying to log out, only access token got cleared but cookies and all not clearing. Kindly help how to generate parameter with id_token_hint to be pass in signoutRedirect. Because once as a user logged out then if again trying to log in it is not asking credentials and it is getting signed in.
logout.ts