OAuth2 Client Credentials Flow¶
The client credentials flow lets applications exchange a set of client credentials for an OAuth2 access token.

The client may use client credentials such as API-keys or JWT signature, or a session Bearer token, depending on how it is previously authenticated.
The script should first fetch an access token from the Argus OAuth Token endpoint
1 | |
Argus will respond with an access token:
1 | |
The script should then use this token as an Authorization:Bearer header towards the client application:
1 | |
The client application may invoke the Argus token endpoint to verify the token, or invoke any permitted Argus endpoint using this bearer token.
1 | |
Warning
The client MUST forward the user agents origin IP using the X-Forwarded-For header
when invoking an Argus API, as Argus will verify that this IP corresponds
with the IP used to create the access token.