---
updatedAt: 2025-08-27T16:00:03.000Z
agentTools:
  projectIndex: https://docs.moneyhubenterprise.com/v2.5/llms.txt
---

# Construct authorisation url to authenticate the end-user

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Swagger 2.0 docs for the authentication/authorization Moneyhub API",
    "title": "Moneyhub Identity Service",
    "version": "2.0.0"
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "paths": {
    "/oidc/auth": {
      "get": {
        "summary": "Construct authorisation url to authenticate the end-user",
        "parameters": [
          {
            "description": "ID of the client",
            "in": "query",
            "name": "client_id",
            "required": true,
            "example": "67e5c1ce-1a3b-4ca8-a2d8-49ab822dbc24",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The openid id:scope",
            "in": "query",
            "name": "scope",
            "required": true,
            "example": "openid id:1ffe704d39629a929c8e293880fb449a",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The redirect uri that the auth endpoint will redirect to on success",
            "in": "query",
            "name": "redirect_uri",
            "required": true,
            "example": "http://localhost:3001",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The type of response",
            "in": "query",
            "name": "response_type",
            "required": true,
            "example": "code",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "id_token",
                "token",
                "code id_token",
                "code token",
                "id_token token",
                "code id_token token"
              ]
            }
          },
          {
            "description": "Request object formed from the required claims",
            "in": "query",
            "name": "request",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Opaque value used to maintain state between the request and the callback.",
            "in": "query",
            "name": "state",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space delimited, case sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent.",
            "in": "query",
            "name": "prompt",
            "example": "login consent",
            "schema": {
              "type": "string",
              "enum": [
                "none",
                "login",
                "consent",
                "select_account"
              ]
            }
          }
        ],
        "responses": {
          "302": {
            "description": "A successful or erroneous authentication response"
          },
          "403": {
            "description": "Unsuccessful Response - Invalid claims - Invalid scopes",
            "content": {
              "text/html; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "tags": [
          "auth"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://identity.moneyhub.co.uk"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "Error": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "The error code",
            "type": "string"
          },
          "message": {
            "description": "The error message",
            "type": "string"
          },
          "correlationId": {
            "description": "Id that identifies the request and can be used to ask for more details related to the error",
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```