New in 2.4: Test runs you can trust See what's new →

OAuth 2.0

OAuth 2.0:用于测试客户端流程的内存授权服务器。支持带 PKCE 的授权码模式、客户端凭据、密码和刷新令牌模式,以及受保护资源、userinfo、令牌自省(RFC 7662)和撤销(RFC 7009)。授权会以用户 apibee 的身份自动批准。

请求示例

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"
在 Studio 中运行