auth

Complete Dashboard OAuth Authentication

Changed on

Completes the dashboard OAuth authentication flow by exchanging authorization code for tokens.

post/bodhi/v1/auth/dashboard/callback

Request

  • Base URL: http://localhost:1135
  • URL: http://localhost:1135/bodhi/v1/auth/dashboard/callback
  • Auth: one of:
    • none
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL /bodhi/v1/auth/initiate, token URL /bodhi/v1/auth/callback)

Request body

codestring nullable

Required for the success flow

statestring nullable

CSRF protection — must match the initiated request

errorstring nullable

OAuth error code if authentication failed (e.g., "access_denied")

error_descriptionstring nullable

Example request

{
  "code": "auth_code_123",
  "state": "random_state_456"
}

Response

Dashboard OAuth flow completed successfully

locationstring required

The URL to redirect to (OAuth authorization URL or application home page)

Example response

{
  "location": "https://oauth.example.com/auth?client_id=test&redirect_uri=..."
}

Changes

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      removed 'propertyNames' constraint from the / response property for the status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • breaking

      the / response's property type changed from object null to string null for status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status