Authenticators API
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | 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) | |
limit | query | integer (int32) | Maximum number of records to return. This option is not yet supported. | |
offset | query | integer (int32) | Number of records to skip for pagination. This option is not yet supported. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. This option is not yet supported. | |
offset | query | integer (int32) | Number of records to skip for pagination. This option is not yet supported. | |
authenticator-id | path | string | Yes | ID of an authenticator |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the user defined local authenticator. It must be started with 'custom-'. |
id | string | ||
displayName | string | Yes | |
isEnabled | boolean | Yes | |
authenticationType | string | Allowed values: | |
image | string | ||
description | string | ||
endpoint | Endpoint | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
authenticator-id | path | string | Yes | ID of an authenticator |
Request body (required): application/json
This represents the user defined local authenticator to be created.
Schema: UserDefinedLocalAuthenticatorUpdate
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | |
isEnabled | boolean | Yes | |
image | string | ||
description | string | ||
endpoint | Endpoint | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
authenticator-id | path | string | Yes | ID of an authenticator |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successful response | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Authenticators
Type: array of Authenticator
Authenticator
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | ||
displayName | string | ||
isEnabled | boolean | ||
isShared | boolean | Whether this authenticator belongs to a shared connection resolved from a parent organization. Present (and true) only for shared connections; omitted otherwise. | |
definedBy | string | Allowed values: | |
type | string | Allowed values: | |
image | string | ||
description | string | ||
tags | array of string | ||
self | string |
UserDefinedLocalAuthenticatorCreation
Type: object
This represents the configuration for creating a user defined local authenticator.
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the user defined local authenticator. It must be started with 'custom-'. |
id | string | ||
displayName | string | Yes | |
isEnabled | boolean | Yes | |
authenticationType | string | Allowed values: | |
image | string | ||
description | string | ||
endpoint | Endpoint | Yes |
UserDefinedLocalAuthenticatorUpdate
Type: object
This represents the configuration for updating a user defined local authenticator.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | |
isEnabled | boolean | Yes | |
image | string | ||
description | string | ||
endpoint | Endpoint | Yes |
Endpoint
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | ||
authentication | AuthenticationType | The type of authentication required by the action's endpoint. The following options are supported:
| |
allowedHeaders | array of string | List of HTTP headers to forward to the extension. | |
allowedParameters | array 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
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
properties | object | Yes |
ConnectedApps
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
count | integer | ||
links | array of Link | ||
connectedApps | array of ConnectedApp |
Link
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string | Path to the target resource. | |
rel | string | Describes how the current context is related to the target resource. |
Was this page helpful?