Authorization

Acquiring an access token.

In order to start the authorization process, you must have a registered user on the https://idissuer.pl. A user communicating through an API must have "API Access" authorization. Once you have a user, you need to use it to get an access token. When using user data, you must execute the POST method using the address:

https://idissuer.pl/api/v3/auth/token/

Message content

Name Type Description
username string User name (e-mail address)
password string User password

POST https://idissuer.pl/api/v3/auth/token
HTTP/1.1 content-type: application/json
{
    "username":"{{userame}}",
    "password":"{{password}}"
}
                

In response, you get an access token.

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
    "access_token": {
        "token_type": "bearer",
        "token": "eyJhbGciOiJIUzI1NiIsInR...",
        "expires_in": 3600
    }
}
                

Using an access token.

To use the ID Issuer API you need to be authorized using an access token. As mentioned above, the token must be added to the request header

Authorization: Bearer {API_Token}