OAuth 2.0 authorization support
Alibaba Cloud DevOps act as an OAuth 2.0 authorization server that enables third-party applications to access resources on behalf of authorized users through the authorization code with Proof Key for Code Exchange (PKCE) flow.
Supported capabilities
Capability | Details |
Authorization flow | Authorization code flow ( |
Client type | Public client only; |
PKCE | Mandatory; |
Dynamic Client Registration (DCR) | Supported; clients automatically receive a |
Metadata discovery | Supports authorization server metadata discovery and protected resource metadata discovery |
Token format | Opaque tokens (non-JSON Web Token (JWT)); access tokens are prefixed with |
Token lifetime | Access token: 24 hours; refresh token: 90 days |
Unsupported capabilities
Capability | Description |
Client credentials flow ( | Machine-to-machine authorization without user involvement is not supported |
Resource owner password flow ( | Not supported |
Implicit flow ( | Not supported |
Plain PKCE | Not supported; only |
Confidential clients / | Not issued or validated |
Token introspection endpoint, token revocation endpoint | Not exposed externally |
Scope-based permission restriction | Not supported; token permissions are equivalent to those of the authorizing user; |
Endpoint reference
Retrieve endpoint URLs through metadata discovery rather than hardcoding them. The authorization endpoint and token endpoint may reside on different domains.
Endpoint | Path | Method | Authentication | Description |
Authorization server metadata |
| GET | Anonymous | Discover endpoint URLs |
Protected resource metadata |
| GET | Anonymous | Retrieve the corresponding authorization server |
Dynamic client registration |
| POST | Anonymous | Register a client and obtain a |
Authorization endpoint |
| GET / POST | User login | User grants authorization; an authorization code is issued |
Token endpoint |
| POST | Public client (anonymous) | Exchange an authorization code for tokens, or refresh tokens |
Protected resource metadata response fields
The /.well-known/oauth-protected-resource endpoint returns the following fields:
Field | Description |
| Protected resource identifier |
| List of authorization server URLs associated with this resource |
Sites
The authorization service is provided independently on the Center site and Region sites. The two sites are isolated; client_id values and tokens are not interchangeable across sites.
Site | Service URL |
Center site |
|
Region site | Your instance access domain (available in the instance settings in the console) |