-
Notifications
You must be signed in to change notification settings - Fork 4
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
Labels
Comments
This was referenced Feb 10, 2023
22 tasks
2 tasks
4 tasks
@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
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ėjeGET /auth/clients
- get list of all clients, returns onlyid
andname
GET /auth/clients/<uuid>
- get info about a single client, returns all fields exceptsecret
PATCH /auth/clients/<uuid>
- update client info, including secretDELETE /auth/clients/<uuid>
- delete clientClient 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:
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
, wherexx/xx
are the first uuid characters. But ifname
is given, then file name should be stored using name.The text was updated successfully, but these errors were encountered: