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

Auth clients self service #122

Closed
Tracked by #655
sirex opened this issue Mar 28, 2021 · 1 comment · Fixed by #484
Closed
Tracked by #655

Auth clients self service #122

sirex opened this issue Mar 28, 2021 · 1 comment · Fixed by #484

Comments

@sirex
Copy link
Collaborator

sirex commented Mar 28, 2021

A client with spinta::admin scope, should be able to do a full auth client managment:

POST /auth/clients - create new client, id generuojamas serverio pusėje
GET /auth/clients - get list of all clients, returns only id and name
GET /auth/clients/<uuid> - get info about a single client, returns all fields except secret
PATCH /auth/clients/<uuid> - update client info, including secret
DELETE /auth/clients/<uuid> - delete client

Client with a valid client token, can get its own info, and change password. But can't see other clients, create new clients, or delete own client or change any attributes except password of its own client.

Client model:

{
  "id": "<uuid>",
  "name": "",    # optional, for backwards compatibility
  "secret": "",  # can't be shown, only used when creating new client or changing secret
  "scopes" [],   # List of scopes as strings
}

Currently clients are stored as files, using name as filename. Now filename should be sconstructed from uuid, liek this: xx/xx/rest-of-uuid.yml, where xx/xx are the first uuid characters. But if name is given, then file name should be stored using name.

@adp-atea adp-atea moved this to In Progress in Portalo plėtra Jun 21, 2023
@adp-atea adp-atea linked a pull request Jun 21, 2023 that will close this issue
@adp-atea adp-atea moved this from In Progress to Review in Portalo plėtra Jun 28, 2023
@sirex sirex moved this from Review to Todo in Portalo plėtra Aug 18, 2023
@adp-atea adp-atea moved this from Todo to In Progress in Portalo plėtra Aug 22, 2023
@adp-atea adp-atea moved this from In Progress to Review in Portalo plėtra Aug 22, 2023
@sirex sirex moved this from Review to Todo in Portalo plėtra Oct 31, 2023
@adp-atea adp-atea moved this from Todo to Review in Portalo plėtra Nov 6, 2023
@sirex sirex moved this from Review to Deploy in Portalo plėtra Nov 13, 2023
@github-project-automation github-project-automation bot moved this from Deploy to Done in Portalo plėtra Nov 14, 2023
@adp-atea adp-atea moved this from Done to Deploy in Portalo plėtra Nov 14, 2023
@sirex sirex moved this from Deploy to Test in Portalo plėtra Nov 21, 2023
@ATEAanalyst ATEAanalyst added the U5 label Aug 27, 2024
@Grigorjeva11
Copy link

@aurjas Pratestuoti ar scope'u sukurimas per API veikia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Test
Development

Successfully merging a pull request may close this issue.

4 participants