Explore
About CP OAuth
Supported platforms
- Luogu
- AtCoder
- LeetCode
- Codeforces
- GitHub
- Clist.by
Authorization code flow
Standard OAuth 2.0 with optional PKCE (S256 or plain).
Create an OAuth client in the developer console with exact redirect URIs.
Send the user to the authorization endpoint with client_id, redirect_uri, response_type=code, scope, state, and PKCE code_challenge for public clients.
After sign-in and consent, the browser returns to your redirect URI with a 10-minute code.
Exchange the code at the token endpoint for a 1-hour access token and a 30-day refresh token.
Call the userinfo endpoint with the bearer token to read granted scopes.
Use the refresh token to obtain new tokens; each refresh token rotates on use.
Endpoints
- Issuer
https://www.cpoauth.com - Authorization
https://www.cpoauth.com/oauth/authorize - Token
https://www.cpoauth.com/api/oauth/token - Userinfo
https://www.cpoauth.com/api/oauth/userinfo - Revocation
https://www.cpoauth.com/api/oauth/revoke
Scopes
openidAccount IDprofileBasic profileemailEmail addresscp:linkedAll linked accountslink:luoguLinked Luogu accountlink:atcoderLinked AtCoder accountlink:leetcodeLinked LeetCode accountlink:codeforcesLinked Codeforces accountlink:githubLinked GitHub accountlink:googleLinked Google accountlink:clistLinked Clist.by accountcp:summaryContest statisticscp:detailsRating history