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

Feature Request: Let admins authenticate users without password #2524

Closed
vypxl opened this issue May 21, 2023 · 1 comment
Closed

Feature Request: Let admins authenticate users without password #2524

vypxl opened this issue May 21, 2023 · 1 comment

Comments

@vypxl
Copy link

vypxl commented May 21, 2023

I am playing around with passkey based login, and got it to work, the only problem is, when I successfully authenticated
the user with their passkey, I have no way to let pocketbase know that.

Until #406 is implemented, I want to propose a way for the backend to authenticate a user without their intervention.

Something along the lines of pb.collection('users').authManual(userID). This could be set to only be accessible by admins, so the backend could authenticate as an admin and log in a user after they successfully presented a passkey.

@ganigeorgiev
Copy link
Member

Option for admins to generate auth user tokens by user id eventually will be handled in #718.

As a workaround for now, you can register a custom Go route and use the tokens.NewRecordAuthToken() to return a record token by the record id (see also Fetch single record).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants