Access Tokens sign
The SignDoc resource server uses the default Access Token format of the OIDC Provider from BankID, adapted to the Client Credential flow.
OIDC Clients can request access tokens for the SignDoc resource server by invoking the Token endpoint using Client Credential Grant and supplying appropriate scope value (i.e. signdoc/read_write
).
The access token must be added as an OAuth2 Bearer Token to subsequent requests to endpoints for the SignDoc resource server API.
Example request:
POST /auth/realms/current/protocol/openid-connect/token HTTP/1.1 |
The following is an example of a valid access token to the SignDoc resource server. The resource designator signdoc
as well as the role read_write
is added to the resource_access
claim of the access token to signify access to the associated endpoint of the SignDoc resource server API.
{ |