OAuth 2.0
OAuth 2.0:用于测试客户端流程的内存授权服务器。支持带 PKCE 的授权码模式、客户端凭据、密码和刷新令牌模式,以及受保护资源、userinfo、令牌自省(RFC 7662)和撤销(RFC 7009)。授权会以用户 apibee 的身份自动批准。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GET
https://api.testingapis.com/api/auth/oauth/authorizeStart the authorization code flow and issue a codeStart the authorization code flow and issue a code (auto-approved as user apibee). - POST
https://api.testingapis.com/api/auth/oauth/introspectReport whether a token is activeReport whether a token is active (RFC 7662). - GET
https://api.testingapis.com/api/auth/oauth/protectedReturn a resource that requires an OAuth access tokenReturn a resource that requires an OAuth access token. - POST
https://api.testingapis.com/api/auth/oauth/revokeRevoke an access or refresh tokenRevoke an access or refresh token (RFC 7009). - POST
https://api.testingapis.com/api/auth/oauth/tokenExchange a grant for an access tokenExchange a grant for an access token. - GET
https://api.testingapis.com/api/auth/oauth/userinfoReturn the profile of the user behind an access tokenReturn the profile of the user behind an access token.
请求示例
Start the authorization code flow and issue a code (auto-approved as user apibee). 完整参考和 Send 按钮(英文).
cURL
curl -X GET "https://api.testingapis.com/api/auth/oauth/authorize?response_type=code&client_id=apibee-public&redirect_uri=http://localhost:3000/callback&state=xyz&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256"