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

Holders endpoints #29

Merged
merged 8 commits into from
Feb 12, 2024
Merged

Holders endpoints #29

merged 8 commits into from
Feb 12, 2024

Conversation

kompotkot
Copy link
Collaborator

@kompotkot kompotkot commented Jan 24, 2024

To handle holders access to API

List holders:

curl  'http://localhost:7379/holders' --header 'Authorization: Bearer <access_token>'

Add new holder:

curl --request POST 'http://localhost:7379/holders' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <access_token>' \
--data '{
    "holder_id": "<user_id>",
    "holder_type": "user",
    "permissions": ["read"]
}
'

Remove access to signer:

curl --request DELETE 'http://localhost:7379/holders' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <access_token>' \
--data '{
    "holder_id": "<user_id>",
    "holder_type": "user",
    "permissions": ["read"]
}

@kompotkot
Copy link
Collaborator Author

kompotkot commented Jan 24, 2024

@kompotkot kompotkot merged commit 43c3415 into main Feb 12, 2024
1 check passed
@kompotkot kompotkot deleted the auth-endpoint branch February 12, 2024 15:50
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

Successfully merging this pull request may close these issues.

None yet

1 participant