Developer Documentation
OneAccess API
OneAccess publishes a standards-based OAuth 2.0 and OpenID Connect interface. A connected application sends users to OneAccess to sign in, receives tokens, and reads the signed-in user's approved claims. OneAccess answers who the user is and how they signed in; your application owns its own permissions and sessions.
Quick start
- Register an application in the Developer Portal. Sign in with an account that has Developer Portal access (membership of a developer group), choose the application type and list your exact redirect URIs.
- Obtain approved credentials. Production registrations need approval before a client secret is issued.
- Request a token with the flow your application type uses: Authorization Code with PKCE for sign-in, or Client Credentials for a back-end service.
- Make a first call. Send the access token to
/connect/userinfoto read the user's approved claims. - Handle the response. Branch on the OAuth
errorcode, and log thecorrelationIdfrom any failure.
Authentication
Authorization Code with PKCE
For an application that signs users in. Only the S256 challenge method is accepted. Used by Web registrations, which hold a client secret on the server.
Client Credentials
For a back-end service that calls an API as itself. Service registrations authenticate with a client secret; there is no user and no ID token.
The security schemes, scopes and per-operation requirements are in the API Reference. Public (single-page) client registrations are described in the Developer Portal documentation and are not covered by this reference.
API families
OneAccess documents an OAuth and OpenID Connect protocol surface. It does not publish a separate resource API.
-
Discovery
Public metadata a client reads before it starts: the issuer, endpoint addresses, supported capabilities and the public keys that verify tokens.
-
Sign-in and sign-out
Browser redirects that start an Authorization Code with PKCE sign-in and end the user's OneAccess session.
-
Tokens
Server-to-server calls that exchange an authorization code, or a service client's credentials, for an access token, and that revoke a token.
-
User information
Reads the approved claims of the user a bearer access token was issued for.
A first request
Request an access token for a service application. The values are placeholders; the full example in ten languages is in the guide.
curl --fail-with-body --request POST "API_BASE_URL/connect/token" \
--user "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "scope=YOUR_SCOPE" \
--data-urlencode "resource=YOUR_API_AUDIENCE"
Illustrative only. Never place a real client secret in documentation, source control or a browser.
The Developer Portal
Application registration, redirect URIs, scope requests, credentials and approval workflows stay in the authenticated Developer Portal. They are not repeated here.