Request Access Token
POST /REST/v1/OAuth/GetAccessToken/ACS-Applikation HTTP/1.1
Host: oauth2.hin.ch
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=client_id&client_secret=client_secret
| Value | Description |
|---|---|
| URL | https://oauth2.hin.ch/REST/v1/OAuth/GetAccessToken/<TokenGroup> |
grant_type | client_credentials (fixed defined value) |
client_id | client_id issued by HIN |
client_secret | Secret generated via apps.hin.ch |
Obtaining an access token using Curl:
curl --header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id=<client_id>" \
--data-urlencode "client_secret=<client_secret>" \
https://oauth2.hin.ch/REST/v1/OAuth/GetAccessToken/ACS-Applikation