How to logout from Gitlab with OAuth2

Hello,

I use Gitlab as OAuth2 provider, it works fine. I can get an access token and use perfectly the gitalb API.

The only problem is the signout. When I do a logout from my application, I would like to logout from Gitlab too.

I didn’t find how to do this. I tried to use the same URL as on Gitlab website: /users/sign_out. But I didn’t manage due to cross-origin issues and the authenticity token to provide.

I certainly missed something. Could anybody help me or give me some links with documentations.

Thanks

2 Likes