mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
🚀 Feature: OIDC with Nextcloud #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @breitero on GitHub (Oct 15, 2024).
Feature description
Tutorial for OIDC with Nextcloud
Pitch
I wrote stonith404 for help with OIDC-Login in Nextcloud.
Here is what I got so you can also use this as tutorial.
Nextcloud: Install the app https://apps.nextcloud.com/apps/oidc_login and edit the config.php where you add the following lines:
Pocket-ID:
The Callback-URL which you use in Pocket-ID is: https://nextcloud/apps/oidc_login/oidc
@stonith404 commented on GitHub (Oct 15, 2024):
Thanks for sharing :)
@tarunkumar519 commented on GitHub (Feb 2, 2025):
Hi, using the above flow, pocket-id keeps creating new users but does not link to old users with same username or Email. If i use 'oidc_login_disable_registration' => true, it won't create a new user but fails auth entirely. I already have users in nextcloud with their own usernames and Email, how do i link to these with same pocket-id emails? (linking to pocket-id usernames is also fine)
@EweSparky commented on GitHub (Feb 2, 2025):
@tarunkumar519 I used user_oidc and configured it as such:
Pocket ID:
PKCE; apparentlyuser_oidcsupports it but I keep getting an error with itusernameand their Nextcloud usernameNextcloud:
Edit your
config.phpfile:@tarunkumar519 commented on GitHub (Feb 2, 2025):
Hi @EweSparky thanks for sharing but for some reason it says 'Failed to provision user when i try to login with your inputs.
What am i doing wrong? Here's my config where I feel there might be a mistake
In above picture, 'admin' is the nextcloud username for user 'tarun' in pocked-id
Below is nextcloud config, I don't know if all of this is required