OAuth 2.0
OAuth 2.0: ein Autorisierungsserver im Speicher zum Testen von Client-Abläufen. Unterstützt den Authorization-Code-Grant mit PKCE, Client Credentials, Password- und Refresh-Token-Grants sowie eine geschützte Ressource, Userinfo, Introspection (RFC 7662) und Revocation (RFC 7009). Die Autorisierung wird automatisch als Benutzer apibee genehmigt.
Dein Konto schaltet diese Endpunkte frei. Nutze Try it auf der Seite jedes Endpunkts, um Requests zu senden.
Diese Endpunkte brauchen ein kostenloses Konto. Leg eins an oder melde dich an, um ihre Details zu sehen und sie hier auszuprobieren.
- 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.
Beispiel-Request
Start the authorization code flow and issue a code (auto-approved as user apibee). Vollständige Referenz und Send-Button (auf Englisch).
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"Melde dich an, um die Details zu sehen
Die Parameter, die Beispiele für Request und Antwort und das Live-Panel Try it für diese Endpunkte sind für angemeldete Mitglieder. Konten sind kostenlos und in wenigen Sekunden angelegt.
Verwandte Seiten
- Lektion: Grants, Scopes und Fehler bei OAuth 2.0 (auf Englisch)
- Lektion: PKCE bei OAuth 2.0 Schritt für Schritt (auf Englisch)
- Leitfaden: Auth-Test-Endpunkte für jedes Verfahren (auf Englisch)
- Lektion: Authentifizierung und Autorisierung (auf Englisch)
- JWT-Decoder
- JWT-Authentifizierungs-API
- OAuth-1.0a-Testserver