Retrieve the OAuth 2.0 Authorization Server Metadata describing this authorization server's endpoints and capabilities, as defined by RFC 8414.
The response only advertises capabilities that are actually implemented. There is no authorization endpoint, no dynamic client registration, and no token revocation or introspection endpoint, so those fields are absent.
This endpoint is unauthenticated.
The authorization server's metadata. See https://datatracker.ietf.org/doc/html/rfc8414#section-2 for the meaning of each field.
curl https://auth.gigs.com/.well-known/oauth-authorization-server \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: application/json"
{
"issuer": "https://auth.gigs.com",
"token_endpoint": "https://auth.gigs.com/oauth/token",
"jwks_uri": "https://auth.gigs.com/.well-known/jwks.json",
"grant_types_supported": [
"client_credentials"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"private_key_jwt"
],
"token_endpoint_auth_signing_alg_values_supported": [
"RS256",
"PS256"
]
}
Get an access token that can be used with the Gigs API.
Clients authenticate using one of the following methods.
client_secret_basicHTTP Basic authentication using the client credentials:
Authorization: Basic <base64(client_id:client_secret)>
private_key_jwtA signed JWT client assertion in the request body (OIDC Core 1.0 §9):
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion=<signed JWT>
No Authorization header is sent. The assertion's iss and sub
claims must equal the client_id; aud must equal
https://auth.gigs.com; and the assertion lifetime must not exceed
300 seconds.
The grant type to use.
"client_credentials"client_credentials The scope of access requested for the client_credentials grant type. Whether this parameter is required depends on the application. Format: project:{project_id}.
"project:gigs"The type of client assertion used to authenticate the client. Required when authenticating with private_key_jwt.
"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"urn:ietf:params:oauth:client-assertion-type:jwt-bearer A signed JWT proving possession of the client's private key. Required when client_assertion_type is urn:ietf:params:oauth:client-assertion-type:jwt-bearer.
Returns an access token which can be used with the Gigs API.
The access token which grants access to the Gigs API. Must not be parsed or modified. Should not be persisted.
"SdwEV5cN8ivUbxsUBveYRwFE09m7JXSsmZMPLd5xmW5STaYfrG3W2PgKgInRWUKX"The lifetime in seconds of the access token.
3600The type of the access token is always Bearer.
Bearer curl https://auth.gigs.com/oauth/token \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
-u "${GIGS_CLIENT_ID}:${GIGS_CLIENT_SECRET}" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "scope=project:gigs-project"
{
"access_token": "SdwEV5cN8ivUbxsUBveYRwFE09m7JXSsmZMPLd5xmW5STaYfrG3W2PgKgInRWUKX",
"expires_in": 3600,
"token_type": "Bearer"
}