Skip to content

enpxio auth login client-credentials

The Client Credentials Flow is used by clients to obtain an access token outside of the context of a user.

This is typically used by clients to access resources about themselves rather than to access a user's resources.

Synopsis

enpxio auth login client-credentials [--context CONTEXT_NAME] [-s SCOPE ...] [-a AUDIENCE] CLIENT_ID [CLIENT_SECRET]

Flags

--context CONTEXT_NAME
Performs the request using the specified context instead of the default context.
-s, --scopes...
The OAuth scopes to request.
Default: https://apis.enpowerx.io).
-a, --audience AUDIENCE
The OIDC audience to communicate against.
Default: https://apis.enpowerx.io).

Positional Arguments

CLIENT_ID
The OAuth client id.
CLIENT_SECRET
The OAuth client secret. If not provided you will be prompted interactively.

Example

enpxio auth login client-credentials $CLIENT_ID $CLIENT_SECRET

Console Output:

authentication successful