You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Krzysztof Kaczmarczyk edited this page Mar 1, 2021
·
2 revisions
Creating external client credentials
Creating credentials for external clients allows them to access externally available endpoints. A list of available API endpoints can be found here (endpoints with 'external-access' tag):
The client will only be able to see Organization records from his System Account.
In order to create a client:
go to the 'Client management' admin screen,
specify client ID and secret,
specify token validity (an hour by default),
select the System Account.
Client authentication:
The client can then authenticate himself by issuing a POST request to /oauth/token endpoint like so:
http(s)://clientName:secret@host:port/services/servicenetauth/oauth/token?grant_type=client_credentials&scope=external
This request will return the token in the response body.
The acquired token can be used to access the API by adding a request cookie header: