feed® benytter Oauth 2.0 for autentisering og tilgang til API for integratorer.
For å benytte API så må dere benytte Oauth 2.0 for å få en access token
Client ID: <API nøkkel tildelt fra iSYS>
Client secret: <Passord som er tildelt fra iSYS>
Grant type:
Client Credentials med Basic Auth Header
(credentials skal ikke sendes inn som parametere i body til feed®)
Token server:
https://<hostname>/token-server/oauth/token
Auth header settes i kall til API med access token fra token server
Authorization: Bearer <access-token>
Eksempel:
For å hente access token med curl kan man bruke følgende kommando:
curl --request POST --url '<feed_url>/token-server/oauth/token' --header 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials -u "<client_id>:<client_secret>"
English:
feed® utilizes OAuth 2.0 for authentication and access to the API for integrations.
To use the API, you must use OAuth 2.0 to obtain an access token.
Client ID: <API key assigned by iSYS>
Client secret: <Password assigned by iSYS>
Grant type: Client Credentials with Basic Auth Header
(credentials should not be sent as parameters in the body to feed®)
Token server: https://<hostname>/token-server/oauth/token
The Auth header is set in the API call with the access token from the token server.
Authorization: Bearer <access-token>
Example:
To obtain an access token with curl, you can use the following command:
curl --request POST --url '<feed_url>/token-server/oauth/token' --header 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials -u "<client_id>:<client_secret>"