Authentication

POST - oauth/token

Allows users to obtain Bearer token.

Resource URL

Production - https://regiauth.comsecure.co.il//oauth/token

Development - https://regiauth.comsecure.co.il//oauth/token

Parameters

Name Required Description Example
username required [email protected]
password required 1234
grant_type required Specifies the type of grant being requested by the client. password
client_id required The client identifier issued to the client by the authorization server. test_client
client_secret The client secret issued to the client by the authorization server. 4321

Example request

POST /oauth/token
content-type: application/x-www-form-urlencoded
authorization: Basic YmV6ZXFpbnQ6cXN2UjE2YmFZSGQxczBIOEdpanc=
user-agent: PostmanRuntime/7.2.0
accept: */*
host: regiauth.comsecure.co.il
accept-encoding: gzip, deflate
content-length: 72
[email protected]=12345

Example response

{
    "token_type": "Bearer",
    "access_token": "token code...",
    "expires_in": 10800
}