---
title: "Get an Auth Strategy"
url: "https://nov18-dev.movespot.fyi/apis/internal-portal-1/versions/6cf3dd19-2471-4683-ab50-f062b4345eaa/operations/get-authstrat"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/internal-portal-1/versions/6cf3dd19-2471-4683-ab50-f062b4345eaa.md

# Get an Auth Strategy

`GET` `/internal/application-auth-strategies/{authStrategyId}`

Operation ID: `get-authstrat`

Returns a raw database representation of the auth strategy.

## Path parameters

- `authStrategyId` (string, uuid, required) - ID of the auth strategy to use for the application

## Responses

- `200` - A raw database auth strategy
- `404` - Not Found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Internal Portal
  version: 1.0.2
servers:
  - url: http://konnect-api.konnect.svc.cluster.local:300/v0
    description: Konnect cluster
paths:
  /internal/application-auth-strategies/{authStrategyId}:
    parameters:
      - $ref: "#/components/parameters/AuthStrategyId"
    get:
      operationId: get-authstrat
      summary: Get an Auth Strategy
      description: Returns a raw database representation of the auth strategy.
      responses:
        "200":
          $ref: "#/components/responses/GetAuthStrat"
        "404":
          $ref: "#/components/responses/NotFound"
      tags:
        - App Auth Strategies
components:
  parameters:
    AuthStrategyId:
      name: authStrategyId
      description: ID of the auth strategy to use for the application
      in: path
      required: true
      schema:
        type: string
        format: uuid
        example: ebbac5b0-ac89-45c3-9d2e-c4542c657e79
  responses:
    GetAuthStrat:
      description: A raw database auth strategy
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/AuthStrategy"
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/NotFoundError"
          examples:
            NotFoundExample:
              $ref: "#/components/examples/NotFoundExample"
  schemas:
    AuthStrategy:
      allOf:
        - $ref: "#/components/schemas/BaseAuthStrategy"
    NotFoundError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 404
            title:
              example: Not Found
            type:
              example: https://httpstatuses.com/404
            instance:
              example: kong:trace:1234567890
            detail:
              example: Not found
    BaseAuthStrategy:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        display_name:
          type: string
        strategy_type:
          type: string
        configs:
          type: object
        labels:
          $ref: "#/components/schemas/Labels"
        dcr_provider:
          $ref: "#/components/schemas/NullableDcrProvider"
      required:
        - id
        - name
        - display_name
        - strategy_type
        - dcr_provider
        - configs
        - labels
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
    Labels:
      description: >
        Labels store metadata of an entity that can be used for filtering an
        entity list or for searching across entity types. 


        Keys must be of length 1-63 characters, and cannot start with "kong",
        "konnect", "mesh", "kic", or "_".
      type: object
      example:
        env: test
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: Labels
    NullableDcrProvider:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        provider_type:
          type: string
        issuer:
          type: string
        dcr_config:
          type: object
        labels:
          $ref: "#/components/schemas/Labels"
      nullable: true
      required:
        - id
        - name
        - provider_type
        - issuer
        - dcr_config
        - labels
  examples:
    NotFoundExample:
      value:
        status: 404
        title: Not Found
        instance: kong:trace:6816496025408232265
        detail: Not Found
```
