For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Auth Method

get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
auth_typestring · enumOptional
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

namestringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

priorityintegerOptional
searchstringOptional

A search term.

Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
get/auth_method/
GET /auth_method/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "id": 1,
      "name": "text",
      "auth_type": "SSO",
      "enabled": true,
      "priority": 1,
      "configs": [
        1
      ]
    }
  ]
}
post

Handle post request, suitable for single and multi creation

Args: request ([dict]): can be dict or list of dicts

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
post/auth_method/
POST /auth_method/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 75

"name='text'&auth_type='SSO'&enabled=true&priority=1&configs=[1]"
201Success
{
  "id": 1,
  "name": "text",
  "auth_type": "SSO",
  "enabled": true,
  "priority": 1,
  "configs": [
    1
  ]
}
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth method.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
get/auth_method/{id}/
GET /auth_method/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "auth_type": "SSO",
  "enabled": true,
  "priority": 1,
  "configs": [
    1
  ]
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth method.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
put/auth_method/{id}/
PUT /auth_method/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 75

"name='text'&auth_type='SSO'&enabled=true&priority=1&configs=[1]"
200Success
{
  "id": 1,
  "name": "text",
  "auth_type": "SSO",
  "enabled": true,
  "priority": 1,
  "configs": [
    1
  ]
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth method.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/auth_method/{id}/
DELETE /auth_method/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth method.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 255Optional
auth_typestring · enumOptional
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 255Required
auth_typestring · enumRequired
  • SSO - SSO
  • OTHER - OTHER
Possible values:
enabledbooleanOptional
priorityinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
configsinteger[]Required
patch/auth_method/{id}/
PATCH /auth_method/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 75

"name='text'&auth_type='SSO'&enabled=true&priority=1&configs=[1]"
200Success
{
  "id": 1,
  "name": "text",
  "auth_type": "SSO",
  "enabled": true,
  "priority": 1,
  "configs": [
    1
  ]
}

Last updated