ckanext-passwordless_api (1.1.8)

Download OpenAPI specification:Download

Extension to allow paswordless login to the CKAN API.

Email Key

Request a reset key (login token) to be sent by email.

Request Body schema: application/json
email
string

Responses

Request samples

Content type
application/json
{
  • "email": "string"
}

Response samples

Content type
application/json
{}

Request API Token

Get API token for a user, if reset key valid.

Request Body schema: application/json
email
string
key
string

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "key": "string"
}

Response samples

Content type
application/json
{}

Request API Token (Azure)

Get API token for a user, if Azure AD auth code valid.

Request Body schema: application/json
email
string
token
string

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "token": "string"
}

Response samples

Content type
application/json
{}

Revoke API token

If logged in, revoke API token used during endpoint call.

Responses

Response samples

Content type
application/json
Example
{}

Revoke API token

Revoke API token for a user, without requiring auth.

Request Body schema: application/json
token
string

Responses

Request samples

Content type
application/json
{
  • "token": "string"
}

Response samples

Content type
application/json
{}

Get user

Get current user details & renew their API token.

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "result": {
    }
}

Validate token

Validate the current users API token.

Responses

Response samples

Content type
application/json
Example
true