Willkommen auf dem OAuth-Server
Dieser Server implementiert OAuth 2.0:
Erste Schritte
Um diesen OAuth-Server zu nutzen, kontaktiere uns bitte, um einen OAuth-Antrag anzufordern.
Bitte gib eine kurze Beschreibung der Anwendung, die du erstellen möchtest, zusammen mit den unten stehenden Details an. Keine Sorge, wenn du dir unsicher bist - wir können die Beschreibung, die du uns gibst, zur Hilfe nehmen.
- Der Kundentyp: öffentlich oder vertraulich?
- Der Zuschusstyp: Autorisierung oder Client-Credentials?
- Die erlaubten Redirect URIs.
- Die Ressourcen, auf die du zugreifen möchtest. Bitte erkunde unsere API Dokumentation und unsere GraphQL API.
Beispiel (Berechtigung)
3. Autorisierungscode für Zugangstoken austauschen
POST /token/
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=AUTH_CODE&redirect_uri=YOUR_REDIRECT_URI&client_id=YOUR_CLIENT_ID&code_verifier=YOUR_CODE_VERIFIER
Beispiel (Kundenanmeldeinformationen)
1. Zugangsdaten austauschen für ein Zugangs-Token
POST /token/
Authorization: Basic BASE64_ENCODED(client_id:client_secret)
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
2. Zugang zur geschützten Ressource
GET /resource/
Authorization: YOUR_ACCESS_TOKEN
Example (device)
2. Exchange device code for access token
While the user is authorising, the device should periodically attempt to acquire an access token (at a rate specified by the interval seconds):
POST /token/
Content-Type: application/x-www-form-urlencoded
client_id=YOUR_CLIENT_ID&device_code=DEVICE_CODE&grant_type=urn:ietf:params:oauth:grant-type:device_code
3. Zugang zur geschützten Ressource
GET /resource/
Authorization: YOUR_ACCESS_TOKEN
Example (token exchange)
RFC 8693 delegation semantics are supported. This means that you will use the client credentials token in both the Authorization header and the actor_token, as shown below.
1. Retrieve an access token for your client credentials app, as described in Beispiel (Kundenanmeldeinformationen).
2. Assuming EXTERNAL_IDP_USER_ACCESS_TOKEN has been issued by your external IdP, perform the token exchange call:
POST /token
Authorization: YOUR_CLIENT_CREDENTIALS_ACCESS_TOKEN
Content-Type: application/x-www-form-urlencoded
grant_type="urn:ietf:params:oauth:grant-type:token-exchange"&
actor_token_type="urn:ietf:params:oauth:token-type:access_token"&
actor_token=YOUR_CLIENT_CREDENTIALS_ACCESS_TOKEN&
subject_token_type="urn:ietf:params:oauth:token-type:access_token"&
subject_token=EXTERNAL_IDP_USER_ACCESS_TOKEN
3. Zugang zur geschützten Ressource
GET /resource/
Authorization: YOUR_ACCESS_TOKEN