Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Authenticators API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1

The Authenticators API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize

Authenticators​

List all authenticators in the server​

GET /authenticators

List all authenticators in the server.

Scope(Permission) required: internal_authenticator_view

Parameters

NameInTypeRequiredDescription
filterquerystring

Condition to filter the retrieval of records. Only supports filtering based on the 'tag' and 'name' attribute. For local authenticators and request path authenticators, the 'displayName' is considered as the 'name' attribute during filtering. The 'name' attribute only supports 'eq' and 'sw operations. Filtering with multiple 'name' attributes is not supported. The 'tag' attribute only supports 'eq' operation. Filtering with multiple 'tag' attributes is supported with only 'or' as the complex query operation. E.g. /configs/authenticators?filter=name+sw+fi+and+(tag+eq+2FA+or+tag+eq+MFA)

limitqueryinteger (int32)

Maximum number of records to return. This option is not yet supported.

offsetqueryinteger (int32)

Number of records to skip for pagination. This option is not yet supported.

Responses

CodeDescriptionSchema
200

Successful response

Authenticators
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Requested resource is not found.

Error
500

Internal server error.

Error
501

Not Implemented.

Error

List all authenticator tags​

GET /authenticators/meta/tags

List all authenticator tags.

Scope(Permission) required: internal_authenticator_view

Responses

CodeDescriptionSchema
200

Successful Response

Tags
400

Invalid input in the request.

Error
401

Authentication information is missing or invalid.

403

Access forbidden.

404

Requested resource is not found.

Error
500

Internal server error.

Error

Connected apps of local authenticators​

Get connected apps by authenticator ID​

GET /authenticators/{authenticator-id}/connected-apps

By passing in the appropriate authenticator ID, you can retrieve connected app details.

Scope(Permission) required: internal_authenticator_view

Parameters

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return. This option is not yet supported.

offsetqueryinteger (int32)

Number of records to skip for pagination. This option is not yet supported.

authenticator-idpathstringYes

ID of an authenticator

Responses

CodeDescriptionSchema
200

Successful Response

ConnectedApps
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

User defined local authenticators​

Create a new user defined local authenticator.​

POST /authenticators/custom

This API provides the capability to create a new user defined local authenticator.

Scope(Permission) required: internal_custom_authenticator_create

Request body (required): application/json

This represents the user defined local authenticator to be created.

Schema: UserDefinedLocalAuthenticatorCreation

8 properties
NameTypeRequiredDescription
namestringYes

The name of the user defined local authenticator. It must be started with 'custom-'.

idstring
displayNamestringYes
isEnabledbooleanYes
authenticationTypestring

Allowed values: IDENTIFICATION, VERIFICATION

imagestring
descriptionstring
endpointEndpointYes

Responses

CodeDescriptionSchema
201

Successful response

Authenticator
400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Update a user defined local authenticator.​

PUT /authenticators/custom/{authenticator-id}

This API provides the capability to update the user defined local authenticator configurations.

Scope(Permission) required: internal_custom_authenticator_update

Parameters

NameInTypeRequiredDescription
authenticator-idpathstringYes

ID of an authenticator

Request body (required): application/json

This represents the user defined local authenticator to be created.

Schema: UserDefinedLocalAuthenticatorUpdate

5 properties
NameTypeRequiredDescription
displayNamestringYes
isEnabledbooleanYes
imagestring
descriptionstring
endpointEndpointYes

Responses

CodeDescriptionSchema
200

Successful response

Authenticator
400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Delete a user defined local authenticator.​

DEL /authenticators/custom/{authenticator-id}

This API provides the capability to delete a user defined local authenticator.

Scope(Permission) required: internal_custom_authenticator_delete

Parameters

NameInTypeRequiredDescription
authenticator-idpathstringYes

ID of an authenticator

Responses

CodeDescriptionSchema
204

Successful response

400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Schemas​

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes

An error code.

messagestringYes

An error message.

descriptionstring

An error description.

traceIdstring

An error trace identifier.

Tags​

Type: array of string

The list of tags available for authenticators.

Authenticators​

Type: array of Authenticator

Authenticator​

Type: object

11 properties
NameTypeRequiredDescription
idstring
namestring
displayNamestring
isEnabledboolean
isSharedboolean

Whether this authenticator belongs to a shared connection resolved from a parent organization. Present (and true) only for shared connections; omitted otherwise.

definedBystring

Allowed values: SYSTEM, USER

typestring

Allowed values: LOCAL, FEDERATED

imagestring
descriptionstring
tagsarray of string
selfstring

UserDefinedLocalAuthenticatorCreation​

Type: object

This represents the configuration for creating a user defined local authenticator.

8 properties
NameTypeRequiredDescription
namestringYes

The name of the user defined local authenticator. It must be started with 'custom-'.

idstring
displayNamestringYes
isEnabledbooleanYes
authenticationTypestring

Allowed values: IDENTIFICATION, VERIFICATION

imagestring
descriptionstring
endpointEndpointYes

UserDefinedLocalAuthenticatorUpdate​

Type: object

This represents the configuration for updating a user defined local authenticator.

5 properties
NameTypeRequiredDescription
displayNamestringYes
isEnabledbooleanYes
imagestring
descriptionstring
endpointEndpointYes

Endpoint​

Type: object

4 properties
NameTypeRequiredDescription
uristring
authenticationAuthenticationType

The type of authentication required by the action's endpoint. The following options are supported:

  • NONE: No authentication is required.
    { "type": "NONE" }

  • BASIC: Basic authentication with a username and password.
    { "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } }

  • API_KEY: API key-based authentication, where the key is provided in an HTTP header.
    { "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } }

  • BEARER: Bearer token-based authentication.
    { "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }

  • CLIENT_CREDENTIAL: OAuth2 client credentials grant based authentication.
    { "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "auth_clientId", "clientSecret": "auth_clientSecret", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }

  • PASSWORD_CREDENTIAL: OAuth2 resource owner password credentials grant based authentication.
    { "type": "PASSWORD_CREDENTIAL", "properties": { "username": "auth_username", "password": "auth_password", "clientId": "auth_clientId", "clientSecret": "auth_clientSecret", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }

allowedHeadersarray of string

List of HTTP headers to forward to the extension.

allowedParametersarray of string

List of parameters to forward to the extension.

AuthenticationType​

Type: object

The type of authentication required by the action's endpoint. The following options are supported:

  • NONE: No authentication is required.
    { "type": "NONE" }

  • BASIC: Basic authentication with a username and password.
    { "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } }

  • API_KEY: API key-based authentication, where the key is provided in an HTTP header.
    { "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } }

  • BEARER: Bearer token-based authentication.
    { "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }

  • CLIENT_CREDENTIAL: OAuth2 client credentials grant based authentication.
    { "type": "CLIENT_CREDENTIAL", "properties": { "clientId": "auth_clientId", "clientSecret": "auth_clientSecret", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }

  • PASSWORD_CREDENTIAL: OAuth2 resource owner password credentials grant based authentication.
    { "type": "PASSWORD_CREDENTIAL", "properties": { "username": "auth_username", "password": "auth_password", "clientId": "auth_clientId", "clientSecret": "auth_clientSecret", "tokenEndpoint": "https://custom.idp.com/oauth2/token", "scopes": "send_scope" } }

2 properties
NameTypeRequiredDescription
typestringYes

Allowed values: NONE, BEARER, API_KEY, BASIC, CLIENT_CREDENTIAL, PASSWORD_CREDENTIAL

propertiesobjectYes

ConnectedApps​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
countinteger
linksarray of Link
connectedAppsarray of ConnectedApp

ConnectedApp​

Type: object

2 properties
NameTypeRequiredDescription
appIdstring
selfstring

Type: object

2 properties
NameTypeRequiredDescription
hrefstring

Path to the target resource.

relstring

Describes how the current context is related to the target resource.

Was this page helpful?