Hi Nextcloud community!
I’m working on an interesting project and could use some guidance. Here’s what I’m trying to accomplish:
-
Integrate Nextcloud with Okta for Single Sign-On (SSO) using OpenID Connect (OIDC), not SAML.
-
Use Nextcloud as a backend service in my web application, without involving the Nextcloud UI.
-
When a user logs into my web application, they should only see the folders assigned to them, nothing more. This needs to be dynamic.
-
My web app is already integrated with Okta, so users receive a valid JWT token from Okta upon login.
-
I want to use this Okta-issued JWT token in the header of Nextcloud API calls.
-
Nextcloud should then respond based on the user information in the token, providing access only to the appropriate resources.
Has anyone implemented a similar setup or can point me in the right direction? I’m particularly interested in:
- Configuring Nextcloud to accept and validate Okta OIDC tokens
- Using these tokens for API authentication
- Dynamically managing user permissions based on the token information
Any tips, documentation links, or examples would be greatly appreciated!
Thanks in advance for your help!