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: API Key authentication #62

Open
fallenleavesgocrunch opened this issue Nov 9, 2024 · 1 comment
Open

🚀 Feature: API Key authentication #62

fallenleavesgocrunch opened this issue Nov 9, 2024 · 1 comment
Labels
feature New feature or request

Comments

@fallenleavesgocrunch
Copy link

Feature description

The ability for a backend application to create pocket-id users through a REST API.

Pitch

I'd also love to integrate pocket-id in to software I'm writing; but for that to work I cannot manually administer adding users. I'd love it if there were some kind of REST api where I can submit a new user to pocket-id and have it send out the authenticate email with one-time setup link and a redirect back to my app when it's setup.

app.backend -> pocket-id.backend/add-user?username=xxxx?group=zzzzz&returnto=urlurlurl

pocket-id would then create the user, add them to the group, and email them out the one-time invite. When the user has authenticated their email and added a passkey it would then redirect them to the returnto url.

@fallenleavesgocrunch fallenleavesgocrunch added the feature New feature or request label Nov 9, 2024
@stonith404
Copy link
Owner

Adding users via the rest API is already possible but you would need your access token for authentication which is suboptimal for automations as the access token is only short lived.

We would have to add support for API key authentication where the user can create and revoke them in the admin UI and then use the key for authentication. Because of that I'll rename this feature request to "API Key authentication".

@stonith404 stonith404 changed the title 🚀 Feature: Ability to add user via backend rest api 🚀 Feature: API Key authentication Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants