Reputation: 613
I'm currently working on Backchannel logout using openid. The flow , as I have understood goes like the following
1- User agent(browser in my case) triggers the logout using a link to the OP.
2- OP deletes the user sessions, and send the loogout token to the RP.
3- RP deletes all user sessions.
Can somebody please tell me how to get the link to OP from the browser to trigger the request in the first place. I am using angular 4 on the front end if that matters.
Upvotes: 1
Views: 2460
Reputation: 8431
There is a chapter about Relying Party (RP) Initiated Logout in the OpenID Connect Session Management RFC. It says the logout endpoint URL could be obtained from the end_session_endpoint element of the OpenID Provider's (OP) Discovery response. It's a JSON document usually available at
GET ${OP_BASE_URL}/.well-known/openid-configuration
If the logout endpoint is not mentioned there, the OP might publish it somewhere else, but it's implementation specific.
The event flow is a bit different:
Upvotes: 1