Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pocket-ID oidc #415

Open
eximo84 opened this issue Jan 16, 2025 · 6 comments
Open

Pocket-ID oidc #415

eximo84 opened this issue Jan 16, 2025 · 6 comments
Labels
troubleshooting Maybe bug, maybe not

Comments

@eximo84
Copy link

eximo84 commented Jan 16, 2025

So I've configured openid provider with my details for Pocket-ID however upon login attempt I get invalid credentials.

I assume this is because the default admin account didn't match my username from the oidc provider so I changed admin to my username however same issue (for reference email addresses match).

I then set the value in my hub env to create users and it created a blank user with a random username (see screenshot)

image

I could seem to locate any account linking options to link the default admin account to my oidc provider.

@henrygd
Copy link
Owner

henrygd commented Jan 16, 2025

Are you sure Pocket-ID is providing the email?

This is all PocketBase functionality. IIRC the username doesn't matter and accounts are linked via email.

From the screenshot it looks like the email didn't populate for the created user so I'm assuming there's an issue with PocketBase resolving that.

You might be able to find a solution by searching on PocketBase's github discussion page. I'll look into it tonight if I have time to see if there's a way to debug this from the PocketBase side.

@henrygd henrygd added the troubleshooting Maybe bug, maybe not label Jan 16, 2025
@eximo84
Copy link
Author

eximo84 commented Jan 16, 2025

Thanks Hank. I'll do some digging into pocket base. I feel I need to ensure the correct scopes are being asked used. I can't remember if it asked for email but all other oidc connections I have made used the email each time.

@henrygd
Copy link
Owner

henrygd commented Jan 16, 2025

Try setting the log level to -4 (debug) temporarily on the PocketBase logs page. Maybe it will tell you more about what the error is.

@eximo84
Copy link
Author

eximo84 commented Jan 17, 2025

tried -4 and didnt get anything of use out of the logs. However i have noticed that the default admin is a "superuser" which doesnt seem to have the option to enable OIDC.

My both user and superuser accounts both have the same email.

Image

Image

@eximo84
Copy link
Author

eximo84 commented Jan 17, 2025

In theory the default scope seems to be email and profile, as seen upon first login attempt from Pocket-ID

Image

@eximo84
Copy link
Author

eximo84 commented Jan 17, 2025

oh just read this - ignore my comment about. Superuser is different to admin user https://www.beszel.dev/guide/user-roles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting Maybe bug, maybe not
Projects
None yet
Development

No branches or pull requests

2 participants