Custom OAuth2 by "social login" app authentication with authentik #5560
-
Hello everyone, I'm currently integrating Authentik and Nextcloud using Custom OAuth2 in Nextcloud's social login app.To configure Authentik, I've created an application named 'Nextcloud' with the settings shown in the attached screenshot. When I access this application, it should redirect me to "https://nextcloud.example.com/apps/sociallogin/custom_oauth2/Authentik". After that I created the provider for the 'Nextcloud' application in Authentik. I am now proceeding to configure custom OAuth2 settings in Nextcloud. The issue arises when I click the Authentik 'Nextcloud' application. It should redirect to "https://nextcloud.example.com/apps/sociallogin/custom_oauth2/Authentik", but instead, it logs me directly into "nextcloud.example.com" with Authentik user credentials. This "https://nextcloud.example.com/apps/sociallogin/custom_oauth2/Authentik" link bypasses the login UI, achieving Single Sign-On (SSO) with one click, similar to SAML." After closing my Nextcloud site ("http://nextcloud.example.com") without logging out, I revisited Authentik and clicked the 'Nextcloud' application again. However, it threw an error because I was still logged in to Nextcloud "http://nextcloud.example.com". For each reload the error could be vary. Interestingly, when I performed the same steps with Frappe (using social login and OAuth2), I was allowed to log in again without issues. But Nextcloud throws an error in this scenario. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, please post this at https://help.nextcloud.com. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi, please post this at https://help.nextcloud.com. Thanks!