I can't really logout of my LinkedIn account via Auth0

Hi @dev_auth0. Unfortunately, in the case of LinkedIn connections there are a few limitations that will prevent you from achieving exactly what you want:

  • We don’t support federated logout in LinkedIn, as they don’t provide a way of requesting a logout and send the user back to the requestor (i.e. your application).
  • LinkedIn is not prepared to handle multiple identities (compare to Google, where you can log in with multiple identities), so if the user is already logged in it will use that identity without prompting.
  • LinkedIn does not currently support OAuth2’s prompt=login parameter, which is used to ask the identity provider to re-authenticate the user even if there’s a session in place.

The only workaround that I can suggest is to redirect the user to LinkedIn logout endpoint, Sales Navigator. This can be a harsh user experience, though: you can’t redirect back to your application, and most users will not appreciate being logged out of their social account, so you should at least confirm first with the user.
In general, nowadays, applications that use a social login don’t attempt to terminate the user session with the social identity provider, as the user might be using that session for other tasks.

Hope that clarifies things a bit.

2 Likes