> ## Documentation Index
> Fetch the complete documentation index at: https://docs.causeloop.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sso Authorize

> Initiate an SSO flow.

Returns a {redirect_url, state} — the frontend should redirect the browser
to redirect_url.  In production this builds a real SAML AuthnRequest or
OIDC /authorize URL.  Here we return a stub redirect URL so the flow is
exercisable end-to-end.



## OpenAPI

````yaml /openapi.json get /v1/auth/sso/authorize
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/auth/sso/authorize:
    get:
      tags:
        - auth
      summary: Sso Authorize
      description: >-
        Initiate an SSO flow.


        Returns a {redirect_url, state} — the frontend should redirect the
        browser

        to redirect_url.  In production this builds a real SAML AuthnRequest or

        OIDC /authorize URL.  Here we return a stub redirect URL so the flow is

        exercisable end-to-end.
      operationId: sso_authorize_v1_auth_sso_authorize_get
      parameters:
        - description: Provider id or name (google|okta|azure)
          in: query
          name: provider
          required: true
          schema:
            description: Provider id or name (google|okta|azure)
            title: Provider
            type: string
        - in: query
          name: workspace_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Workspace Id
        - in: query
          name: redirect_uri
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Redirect Uri
        - in: query
          name: login_hint
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Login Hint
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SsoAuthorizeResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    SsoAuthorizeResponse:
      properties:
        redirect_url:
          title: Redirect Url
          type: string
        state:
          title: State
          type: string
      required:
        - redirect_url
        - state
      title: SsoAuthorizeResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````