OpenID-Connect-PHP
OpenID-Connect-PHP copied to clipboard
end_session_endpoint missing on sign out
I use an Identity Provider that does not have the "end_session_endpoint" parameter in the .well-known/openid-configuration. This leads to an exception when calling signOut().
Is this expected behaviour? Is there a way around this?
If your identity provider doesn’t include the parameter in its openid-configuration, it likely doesn’t support this feature. In my opinion, throwing an exception if this happens is the right way to handle this.
You may have following options:
- Catch the exception and handle the unsuccessful logout in your code.
- If your provider simply doesn’t publish its
end_session_endpointparameter, but does supports the spec, provide it by calling the methodproviderConfigParam. Alternatively, inform the maintainer identity providers about the bug. - In case your identity provider doesn’t support RP-initiated Logout it makes no difference, whether yo call
signOutor not.
@jumbojett In my opinion this issue should be closed.