Skip to main content

OAuth metadata

AIGW exposes per-resource discovery at:

https://api.aigw.loginid.ai/<RESOURCE_ID>/.well-known/openid-configuration

and the equivalent OAuth metadata URL:

https://api.aigw.loginid.ai/<RESOURCE_ID>/.well-known/oauth-authorization-server

Important values​

MetadataValue / purpose
issuerGlobal/core AIGW issuer
authorization_endpointPer-resource /oauth2/auth URL
token_endpointGlobal/core /oauth2/token
jwks_uriGlobal/core JWKS for agent-facing tokens
registration_endpointAIGW DCR endpoint
scopes_supportedStandard scopes plus Resource-specific scopes
code_challenge_methods_supportedUse S256
token_endpoint_auth_methods_supportedclient_secret_post/basic, private_key_jwt, none
revocation_endpoint, userinfo_endpoint, end_session_endpoint, device_authorization_endpointGlobal/core endpoints
grant_types_supportedServer capabilities; see the client-specific grant support below

Authorization is Resource-specific. Token issuance and verification use the shared core issuer.

Do not use this JWKS for merchant-facing assertions​

Merchant-facing AIGW JWT assertions use the per-resource issuer and per-resource ES256 JWKS. See JWTs and JWKS.

Discovery base is not the token issuer​

The Console's Resource issuerUrl is the discovery base. The document's issuer remains the shared core issuer. Validate tokens against the returned value, including its trailing slash. A library that strictly derives the discovery URL from the issuer may need explicit metadata/endpoint configuration for this topology.

Use authorization_endpoint from Resource discovery for delegated Resource access, even if DCR returns the platform authorization endpoint. Use Authorization Code with PKCE for agent authorization and client_credentials for Proxy clients. See Token endpoint for the request formats.

Grant support by client type​

Discovery describes authorization-server capabilities. A client can use only the grants enabled for its registration.

GrantAIGW integrationGuide
authorization_codeAgent authorization with PKCE; OAuth client Resources for application sign-inAuthorization and code exchange
refresh_tokenAgent and application clients when a refresh token is issuedRefresh an agent access token
client_credentialsProxy clients obtaining service tokens; does not grant access on behalf of a userProxy client credentials
implicitNot enabled for clients created through AIGW registration or Resource setupUse Authorization Code with PKCE
urn:ietf:params:oauth:grant-type:device_codeNot enabled for clients created through AIGW registration or Resource setupUse Authorization Code with PKCE

An implicit or device-code entry in metadata, or a device_authorization_endpoint, does not enable those flows for your AIGW client. Dynamically registered confidential agents can also use client_credentials to authenticate as the agent itself; such a token does not represent user consent and cannot replace the user's token in credential redemption.