Authentication
Obtain Access Token
Exchanges a client ID and client secret for a temporary access token needed for calling Security Onion Connect API methods. The client ID and client secret are provided within the SOC Administration -> API Clients screen, when creating a new API client or when regenerating an API client's secret. The client secrets are only temporarily visible during those two specific times. The returned access token will expire within 1-2 hours, by default. Ensure the custom integration application is capable of exchanging for a new access token prior to the expiration.
post/oauth2/token
Request
- The document declares no server URL.
- AuthHTTP basic
- TypeScripthttps://skmtc.dev/security-onion-solutions/apis/security-onion-connect-api/docs/oauth2/token/post.tsA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Example request
{
"grant_type": "client_credentials"
}Response
The access token response object.
Example response
{
"access_token": "ory_at_arkgYuJXYp5zwU8Xyh8-URW6QIUbaZVf4JwDPoNZh0g.YcF4W5i2qoQ2RTWZvLYLNIeUjGaUhYuewz9Gua0y7YA",
"expires_in": 3599,
"token_type": "bearer"
}Changes
No recorded changes to this operation across all 23 revisions of this API.