x-generator: NSwag v13.18.2.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v11.0.0.0))
swagger: '2.0'
info:
  title: Absorb SCIM API
  version: v2
consumes:
  - application/json
produces:
  - application/json
paths:
  /scim/v2/authentication:
    post:
      tags:
        - Authentication
      summary: Get access/refresh token.
      operationId: Authentication_CreateToken
      parameters:
        - name: request
          in: body
          description: The authentication request.
          schema:
            $ref: '#/definitions/AuthenticationRequest'
          x-nullable: true
      responses:
        '200':
          x-nullable: false
          description: ''
          schema:
            $ref: '#/definitions/AuthenticationResponseResource'
        '400':
          description: >-
            Invalid parameters(s) passed, see error code for further
            information.
        '401':
          description: Authentication failed.
        '403':
          description: >-
            The user must change their password before further LMS access is
            allowed
        '409':
          description: The authentication is refused due to semantic error.
definitions:
  AuthenticationResponseResource:
    type: object
    description: A resource related to the authentication token.
    properties:
      token:
        type: string
        description: >-
          Access token that represents an authenticated user. It is required by
          protected API endpoints.


          The token must be included in the `Authorization` header in the
          format:

          ```

          Authorization: Bearer [token]

          ```
      scope:
        type: array
        description: The scope granted to the authentication token.
        items:
          type: string
      tokenExpiryDate:
        type: string
        description: The JWT tokens expiration date
        format: date-time
  AuthenticationRequest:
    type: object
    description: Request for SCIM authentication.
    required:
      - username
      - password
    properties:
      username:
        type: string
        description: The username.
        minLength: 1
      password:
        type: string
        description: The password.
        minLength: 1
tags:
  - name: Authentication
x-servers:
  - url: https://{rootUrl}
    description: null
