MySQL Authentication API

MRS authentication endpoints (SCRAM and OAuth2).

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mysql-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mysql-authentication-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: MySQL REST Service (MRS) Runtime Authentication API
  description: 'The MySQL REST Service exposes a runtime HTTP API for authenticating

    against MRS-managed services and OAuth2 vendors. This specification

    documents the fixed authentication endpoints. Dynamic data endpoints

    are generated at runtime per database schema and object, and are not

    enumerated here.

    '
  version: '1.0'
servers:
- url: https://localhost:8443/{serviceName}
  description: Default MySQL Router REST endpoint
  variables:
    serviceName:
      default: myService
      description: Configured MRS REST service path.
security: []
tags:
- name: Authentication
  description: MRS authentication endpoints (SCRAM and OAuth2).
paths:
  /authentication/login:
    post:
      tags:
      - Authentication
      summary: Authenticate against an MRS REST service (SCRAM)
      description: 'SCRAM-based authentication against MRS REST Service accounts.

        Credentials and challenge data are exchanged via JSON request body.

        '
      operationId: mrsLogin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                username:
                  type: string
                authApp:
                  type: string
                nonce:
                  type: string
                clientFirst:
                  type: string
      responses:
        '200':
          description: Authentication challenge or session established.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Authentication failed.
    get:
      tags:
      - Authentication
      summary: OAuth2 authentication redirect
      description: 'Initiates an OAuth2 vendor authentication flow (e.g. Facebook,

        Google, OCI). Returns a bearer token or sets a session cookie

        depending on `sessionType`.

        '
      operationId: oauthLogin
      parameters:
      - in: query
        name: authApp
        required: true
        schema:
          type: string
        description: Name of the configured OAuth2 authentication app.
      - in: query
        name: sessionType
        required: true
        schema:
          type: string
          enum:
          - bearer
          - cookie
      responses:
        '302':
          description: Redirect to the OAuth2 vendor.
        '200':
          description: Authentication completed.
  /authentication/logout:
    post:
      tags:
      - Authentication
      summary: Terminate the current MRS session
      operationId: mrsLogout
      responses:
        '204':
          description: Session terminated.
  /authentication/status:
    get:
      tags:
      - Authentication
      summary: Inspect current authentication session status
      operationId: mrsAuthStatus
      responses:
        '200':
          description: Session status payload.
          content:
            application/json:
              schema:
                type: object
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token obtained from an MRS authentication flow.
    cookieAuth:
      type: apiKey
      in: cookie
      name: session_id
      description: Session cookie obtained from an MRS authentication flow.