How can I logout a user using the API?

Hello,

I am currently using Nextcloud as SSO for various web applications. I do get an access token with oauth but I cannot logout a user. And there is a requesttoken parameter on the logout button which prevents me from simply making an ajax request to disconnect the current user.

Anyone to help me with this?

I also have same problem, let me know if you found any solution.

There is a related open Issue with a somewhat unsecure workaround here: allow to set an optional logout url when using the environment variable authentication · Issue #114 · nextcloud/user_saml · GitHub