-
Notifications
You must be signed in to change notification settings - Fork 14
Request an Access Token
Joël Spaltenstein edited this page Jun 20, 2019
·
5 revisions
URL : /token
Method : POST
Parameters
Note that the Content-Type
must be application/x-www-form-urlencoded
Success Response
Upon successful validation of the assertion and, if a scope is specified, confirmation that the user has access to the requested study, this resource will return an access_token.
-
Status :
200 OK
- Content :
{
"access_token": "eyJhbGciOiJIUzI1NiIsImtpZCI6IjEifQ.eyJzdWIiOiIxMDQzOTE0ODIzNDkxNzE4Mzc1NzYifQ.zkqemWjCKVUqoRpPtoxUrocAw8uo63Q49-bXlG7G6m8",
"token_type": "Bearer",
"expires_in": 3600
}
Error Response
If validation of the assertion fails :
-
Status :
400 Bad Request
- Content :
{
"error": "invalid_grant",
"error_description": "Audience validation failed"
}
If the user does not have access to the scope :
-
Status :
400 Bad Request
- Content :
{
"error": "invalid_scope",
"error_description": "Unauthorized scope"
}
- Authentication API
- Study List
- Studies/Series Favorites
- Working with the Inbox
- DICOMweb Capability Tokens
- Webhooks
-
Working with Albums
- Album List
- Get an Album
- Create an album
- Edit an album
- Delete an album
- Add a study
- Add a series
- Remove a study
- Remove a series
- Add a User
- Remove a User
- Get the list of Users
- Add and upgrade an user to Admin
- Downgrade an admin to User
- Add an album to favorites
- Remove an album from favorites
- Post a comment
- Get a list of events (comments and mutations)
- Others
- Report Providers