Identity provider API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1
The WSO2 Identity Platform - Identity Provider Management API definition (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{org-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{org-name}/oauth2/authorize
Identity Providers
List identity providers
GET /identity-providers
This API provides the capability to retrieve the list of identity providers.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
filter | query | string | Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations and also complex queries with 'and' operations. E.g. /identity-providers?filter=name+sw+"google"+and+isEnabled+eq+"true" | |
sortOrder | query | string | Defines the order in which the retrieved records should be sorted. This parameter is not supported yet Allowed values: | |
sortBy | query | string | Attribute by which the retrieved records should be sorted. This parameter is not supported yet | |
requiredAttributes | query | string | Specifies the required parameters in the response. This parameter is not supported yet |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | IdentityProviderListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Add a new identity provider
POST /identity-providers
This API provides the capability to create a new identity provider.
Scope(Permission) required: internal_idp_create
Request body (required): application/json, application/xml
This represents the identity provider to be created.
Schema: IdentityProviderPOSTRequest
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the identity provider (IdP). |
description | string | The name of the identity provider (IdP). | |
image | string | The URL to the logo image of the identity provider (IdP). | |
isPrimary | boolean | Default: | |
isFederationHub | boolean | Default: | |
homeRealmIdentifier | string | ||
certificate | Certificate | ||
alias | string | ||
claims | Claims | ||
roles | Roles | ||
federatedAuthenticators | FederatedAuthenticatorRequest | ||
provisioning | ProvisioningRequest |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | IdentityProviderResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Retrieve IdP by ID
GET /identity-providers/{identity-provider-id}
This API provides the capability to retrieve the identity provider details using its ID.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | IdentityProviderResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete an identity provider by ID
DEL /identity-providers/{identity-provider-id}
This API provides the capability to delete an identity provider by giving its ID.
Scope(Permission) required: internal_idp_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider |
force | query | boolean | Enforces the forceful deletion of an identity provider, federated authenticator, or an outbound provisioning connector even though a service provider refers to it. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Patch an IdP property by ID
PATCH /identity-providers/{identity-provider-id}
This API provides the capability to update an identity provider property using patch request. identity provider (IdP) patch is supported only for key-value pairs.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
Schema: PatchRequest
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | IdentityProviderResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Metadata
List supported federated authenticators of IdPs
GET /identity-providers/meta/federated-authenticators
This API provides the list of supported federated authenticators for an identity provider in WSO2 Identity Platform.
Scope(Permission) required:
internal_idp_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | array of MetaFederatedAuthenticatorListItem |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Get metadata of a supported federated authenticator
GET /identity-providers/meta/federated-authenticators/{federated-authenticator-id}
This API provides the details of a single supported federated authenticator for an identity provider in WSO2 Identity Platform.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
federated-authenticator-id | path | string | Yes | ID of a federated authenticator |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | MetaFederatedAuthenticator |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
List supported outbound provisioning connectors of IdPs
GET /identity-providers/meta/outbound-provisioning-connectors
This API provides the list of supported federated authenticators for an identity provider (IdP) in the WSO2 Identity Platform.
Scope(Permission) required: internal_idp_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | array of MetaOutboundConnectorListItem |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Get metadata of a supported outbound provisioning connector
GET /identity-providers/meta/outbound-provisioning-connectors/{outbound-provisioning-connector-id}
This API provides the details of a single supported outbound provisioning connector for an identity provider (IdP) in the WSO2 Identity Platform.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
outbound-provisioning-connector-id | path | string | Yes | ID of an outbound provisioning connector |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | MetaOutboundConnector |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Federated Authenticators
List federated authenticators of an IdP
GET /identity-providers/{identity-provider-id}/federated-authenticators
This API provides a list of federated authenticators enabled for a specific identity provider identified by its ID.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | FederatedAuthenticatorListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update federated authenticators of an IdP
PUT /identity-providers/{identity-provider-id}/federated-authenticators
This API updates federated authenticators enabled for a specific identity provider identified by its ID.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the federated authenticators to be updated
Schema: FederatedAuthenticatorRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultAuthenticatorId | string | Yes | ID of the federated authenticator to be used as the default authenticator for the respective identity provider. |
authenticators | array of FederatedAuthenticator | Includes the list of federated authenticators supported by the respective identity provider. This should include the authenticator specified as the |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | FederatedAuthenticatorListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Retrieve federated authenticator config of an IdP
GET /identity-providers/{identity-provider-id}/federated-authenticators/{federated-authenticator-id}
This API provides the capability to retrieve the federated authenticator information of an identity provider by giving the federated authenticator's ID.
Scope(Permission) required:internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
federated-authenticator-id | path | string | Yes | ID of the federated authenticator. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | FederatedAuthenticator |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update a federated authenticator of an IdP
PUT /identity-providers/{identity-provider-id}/federated-authenticators/{federated-authenticator-id}
This API provides the capability to update an identity provider's federated authenticator config by specifying the authenticator ID.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
federated-authenticator-id | path | string | Yes | ID of the federated authenticator. |
Request body (required): application/json
This represents the federated authenticator to be updated
Schema: FederatedAuthenticatorPUTRequest
7 properties
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | FederatedAuthenticator |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Provisioning
List provisioning entities of an IdP
GET /identity-providers/{identity-provider-id}/provisioning
This API provides a list of available provisioning entities for an identity provider. This includes just-in-time provisioning config and outbound provisioning connectors
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | ProvisioningResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
List outbound provisioning connectors of an IdP
GET /identity-providers/{identity-provider-id}/provisioning/outbound-connectors
This API provides a list of outbound provisioning connectors enabled for an identity provider.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OutboundConnectorListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update outbound provisioning connectors of an IdP
PUT /identity-providers/{identity-provider-id}/provisioning/outbound-connectors
This API updates the list of outbound provisioning connectors enabled for an identity provider.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the outbound provisioning connectors to be updated
Schema: OutboundProvisioningRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultConnectorId | string | Yes | The identifier of the connector. |
connectors | array of OutboundConnector |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OutboundConnectorListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Retrieve outbound provisioning connector of an IdP
GET /identity-providers/{identity-provider-id}/provisioning/outbound-connectors/{outbound-provisioning-connector-id}
This API provides the capability to retrieve an identity provider's outbound provisioning connector information by specifying the provisioning connector's ID.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
outbound-provisioning-connector-id | path | string | Yes | ID of the outbound provisioning connector. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OutboundConnector |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update outbound provisioning connector of an IdP
PUT /identity-providers/{identity-provider-id}/provisioning/outbound-connectors/{outbound-provisioning-connector-id}
This API provides the capability to update an outbound provisioning connector config of an identity provider by specifying the provisioning connector's ID.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
outbound-provisioning-connector-id | path | string | Yes | ID of the outbound provisioning connector. |
Request body (required): application/json
This represents the outbound provisioning connector to be updated
Schema: OutboundConnectorPUTRequest
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | The identifier of the connector. | |
name | string | The name of the connector. | |
isEnabled | boolean | Default: | |
isDefault | boolean | Default: | |
blockingEnabled | boolean | Default: | |
rulesEnabled | boolean | Default: | |
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OutboundConnector |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Just-In-Time provisioning config of an IdP
GET /identity-providers/{identity-provider-id}/provisioning/jit
This API retrieves the Just-In-Time provisioning config of an identity provider by specifying the identity provider ID.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | JustInTimeProvisioning |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update the just-in-time provisioning config of an IdP
PUT /identity-providers/{identity-provider-id}/provisioning/jit
This API provides the capability to update the just-in-time provisioning config of an identity provider by specifying the identity provider's ID. This includes the ability to enable/disable JIT provisioning, change the provisioning user store and enable/disable user prompts for username, password, and consent.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the just-in-time provisioning config to be updated.
Schema: JustInTimeProvisioning
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
isEnabled | boolean | Yes | Default: |
scheme | string | Allowed values: | |
userstore | string | Default: | |
associateLocalUser | boolean | Specifies if the JIT-provisioned account should be associated with the local user account. Default: | |
accountLookupAttributeMappings | array of object | This variable specifies the mapping between the federated attributes and the local user attributes for account lookup. | |
attributeSyncMethod | string | This variable specifies the method used for syncing attributes between the JIT-provisioned user account and the local user account. WSO2 Identity Platform allows the following syncing methods: <ul> <li><code>OVERRIDE_ALL</code>: All attributes of the local user account will be overridden by the attributes received from the external identity provider.</li> <li><code>NONE</code>: None of the attributes received from the identity provider will be synced with the local user account.</li> <li><code>PRESERVE_LOCAL</code>: Only the attributes received from the identity provider will be updated while preserving the other attributes of the local user account.</li> </ulAllowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | JustInTimeProvisioning |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Claims
Get claim config of an IdP
GET /identity-providers/{identity-provider-id}/claims
This API provides the claim config for an identity provider. This includes idp-to-local claim mappings, claims to be outbound provisioned, userID claim URI, and role claim URI.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | Claims |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update claims of an IdP
PUT /identity-providers/{identity-provider-id}/claims
This API provides the capability to update the claim config of an existing identity provider.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the claim config to be updated
Schema: Claims
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
userIdClaim | Claim | ||
roleClaim | Claim | ||
mappings | array of ClaimMapping | ||
provisioningClaims | array of ProvisioningClaim |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | Claims |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Roles
Get role config of an IdP
GET /identity-providers/{identity-provider-id}/roles
This API provides the role config of an identity provider. This includes idp-to-local role mappings and/or a list of roles to be outbound-provisioned
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | Roles |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update role config of an IdP
PUT /identity-providers/{identity-provider-id}/roles
This API provides the capability to update the role config of an identity provider by specifying the identity provider ID.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the role config to be updated.
Schema: Roles
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mappings | array of RoleMapping | ||
outboundProvisioningRoles | array of string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | Roles |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Connected Apps
List connected apps of the IdP
GET /identity-providers/{identity-provider-id}/connected-apps
This API provides the list of applications that use this identity provider for federated authentication/provisioning.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | ConnectedApps |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Identity Provider Sharing
List of organizations that the identity provider is shared with
GET /identity-providers/{identity-provider-id}/share
This API returns the list of organizations that the identity provider is shared with.
Scope(Permission) required: internal_idp_shared_access_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider which is shared with organizations. |
before | query | string | Base64 encoded cursor value for backward pagination. | |
after | query | string | Base64 encoded cursor value for forward pagination. | |
filter | query | string | Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations. | |
limit | query | integer | Maximum number of records to return. | |
recursive | query | boolean | Determines whether a recursive search should happen. If set to true, will include shared organizations in all levels of the hierarchy; If set to false, includes only shared organizations in the next level of the hierarchy. | |
excludedAttributes | query | string | Specifies the attributes that should be excluded from the response. | |
attributes | query | string | Specifies the required parameters in the response. Only 'sharingMode' attribute is currently supported. /identity-providers/{identity-provider-id}/share?attributes=sharingMode |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | SharedOrganizationsResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Share an identity provider with specific organizations
POST /identity-providers/share
This API provides the capability to share an identity provider with specific organizations.
Scope(Permission) required: internal_idp_share
Request body (required): application/json
Schema: IdentityProviderShareSelectedRequestBody
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
organizations | array of OrgShareConfig | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Sharing process triggered successfully | ProcessSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Share an identity provider with all organizations
POST /identity-providers/share-with-all
This API provides the capability to share an identity provider with all organizations.
Scope(Permission) required: internal_idp_share
Request body (required): application/json
Schema: IdentityProviderShareAllRequestBody
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
policy | string | Yes | Sharing scope for all organizations. Possible values:
|
Responses
| Code | Description | Schema |
|---|---|---|
202 | Sharing process triggered successfully | ProcessSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Unshare an identity provider from specific organizations
POST /identity-providers/unshare
This API provides the capability to unshare an identity provider from specific organizations.
Scope(Permission) required: internal_idp_unshare
Request body (required): application/json
Schema: IdentityProviderUnshareSelectedRequestBody
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
orgIds | array of string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Unsharing process triggered successfully | ProcessSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Unshare an identity provider from all organizations
POST /identity-providers/unshare-with-all
This API provides the capability to unshare an identity provider from all organizations.
Scope(Permission) required: internal_idp_unshare
Request body (required): application/json
Schema: IdentityProviderUnshareAllRequestBody
1 property
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Unsharing process triggered successfully | ProcessSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Trusted Token Issuers
List trusted token issuers
GET /trusted-token-issuers
This API provides the capability to retrieve the list of token issuers.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
filter | query | string | Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations and also complex queries with 'and' operations. E.g. /identity-providers?filter=name+sw+"google"+and+isEnabled+eq+"true" | |
sortBy | query | string | Attribute by which the retrieved records should be sorted. This parameter is not supported yet | |
sortOrder | query | string | Define the order in which the retrieved tenants should be sorted. Allowed values: | |
requiredAttributes | query | string | Specifies the required parameters in the response. This parameter is not supported yet |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | IdentityProviderListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | |
500 | Server Error | Error |
Add a new trusted token issuer
POST /trusted-token-issuers
This API provides the capability to create a token issuer.
Scope(Permission) required: internal_idp_create
Request body (required): application/json
This represents the trusted token issuer to be created.
Schema: TrustedTokenIssuerPOSTRequest
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
image | string | ||
templateId | string | ||
certificate | Certificate | Yes | |
alias | string | ||
issuer | string | Yes | |
claims | Claims |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | TrustedTokenIssuerResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Retrieve IdP by trusted token issuer's ID
GET /trusted-token-issuers/{trusted-token-issuer-id}
This API provides the capability to retrieve the trusted token issuer details by using its ID.
Scope(Permission) required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
trusted-token-issuer-id | path | string | Yes | ID of the trusted token issuer. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | TrustedTokenIssuerResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete a trusted token issuer by ID
DEL /trusted-token-issuers/{trusted-token-issuer-id}
This API provides the capability to delete a trusted token issuer by giving its ID.
Scope(Permission) required: internal_idp_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
trusted-token-issuer-id | path | string | Yes | ID of the trusted token issuer |
force | query | boolean | Enforces the forceful deletion of an identity provider, federated authenticator, or an outbound provisioning connector even though a service provider refers to it. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Patch a trusted token issuer property by ID
PATCH /trusted-token-issuers/{trusted-token-issuer-id}
This API provides the capability to update a trusted token issuer property using patch request. Trusted token issuer patch is supported only for key-value pairs.
Scope(Permission) required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
trusted-token-issuer-id | path | string | Yes | ID of the trusted token issuer. |
Request body (required): application/json
Schema: PatchRequest
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | TrustedTokenIssuerResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Implicit Association
Get implicit association config of an IdP
GET /identity-providers/{identity-provider-id}/implicit-association
This API provides the implicit association config of an IdP including the status and the specified attributes for lookup.
Scope required: internal_idp_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | ImplicitAssociationResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update implicit association config of an IdP
PUT /identity-providers/{identity-provider-id}/implicit-association
This API provides the capability to update the implicit association config of an identity provider by specifying the identity provider ID.
Scope required: internal_idp_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
identity-provider-id | path | string | Yes | ID of the identity provider. |
Request body (required): application/json
This represents the implicit association configs to be updated.
Schema: ImplicitAssociationPutRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
isEnabled | boolean | ||
lookupAttribute | array of Attributes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | ImplicitAssociationResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
MetaProperty
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | |
displayName | string | ||
description | string | ||
type | string | Allowed values: | |
displayOrder | integer | ||
regex | string | ||
isMandatory | boolean | Default: | |
isConfidential | boolean | Default: | |
options | array of string | ||
defaultValue | string | ||
subProperties | array of MetaProperty |
Patch
Type: object
A JSONPatch as defined by RFC 6902. Patch operation is supported only for root level attributes of an identity provider.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
operation | string | Yes | The operation to be performed. Allowed values: |
path | string | Yes | A JSON-Pointer |
value | string | The value to be used within the operations. |
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. |
Certificate
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
certificates | array of string | ||
jwksUri | string | ||
samlMetadataUri | string | The SAML metadata endpoint URL of the external identity provider. When configured, WSO2 Identity Platform fetches and caches the signing certificate from this URL to validate SAML response signatures and IdP-initiated logout request signatures. |
IdentityProviderPOSTRequest
Type: object
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the identity provider (IdP). |
description | string | The name of the identity provider (IdP). | |
image | string | The URL to the logo image of the identity provider (IdP). | |
isPrimary | boolean | Default: | |
isFederationHub | boolean | Default: | |
homeRealmIdentifier | string | ||
certificate | Certificate | ||
alias | string | ||
claims | Claims | ||
roles | Roles | ||
federatedAuthenticators | FederatedAuthenticatorRequest | ||
provisioning | ProvisioningRequest |
IdentityProviderResponse
Type: object
16 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | The name of the identity provider (IdP). | |
description | string | The name of the identity provider (IdP). | |
isEnabled | boolean | Default: | |
isPrimary | boolean | Default: | |
isShared | boolean | Whether this connection is a shared connection resolved from a parent organization. Present (and true) only for shared connections; omitted otherwise. | |
image | string | ||
isFederationHub | boolean | ||
homeRealmIdentifier | string | ||
certificate | Certificate | ||
alias | string | ||
claims | Claims | ||
roles | Roles | ||
federatedAuthenticators | FederatedAuthenticatorListResponse | ||
provisioning | ProvisioningResponse | ||
implicitAssociation | ImplicitAssociationResponse |
IdentityProviderListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | The total number of identity provider's (IdP) listed in the Response. | |
startIndex | integer | ||
count | integer | ||
links | array of Link | ||
identityProviders | array of IdentityProviderListItem |
IdentityProviderListItem
Type: object
16 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The ID of the identity provider. | |
name | string | The name of the identity provider. | |
description | string | The description of the identity provider. | |
isEnabled | boolean | Default: | |
image | string | The logo image of the identity provider. | |
isPrimary | boolean | ||
isFederationHub | boolean | ||
homeRealmIdentifier | string | ||
certificate | Certificate | ||
alias | string | ||
claims | Claims | ||
roles | Roles | ||
federatedAuthenticators | FederatedAuthenticatorListResponse | ||
provisioning | ProvisioningResponse | ||
self | string | The URL of the identity provider. | |
isShared | boolean | Whether this connection is a shared connection resolved from a parent organization. Present (and true) only for shared connections; omitted otherwise. |
MetaFederatedAuthenticatorListItem
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
authenticatorId | string | The authenticator ID. | |
name | string | The name of the authenticator | |
definedBy | string | Allowed values: | |
self | string | The URL of the identity provider. |
MetaFederatedAuthenticator
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
authenticatorId | string | ||
name | string | ||
displayName | string | ||
definedBy | string | Allowed values: | |
properties | array of MetaProperty |
FederatedAuthenticatorRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultAuthenticatorId | string | Yes | ID of the federated authenticator to be used as the default authenticator for the respective identity provider. |
authenticators | array of FederatedAuthenticator | Includes the list of federated authenticators supported by the respective identity provider. This should include the authenticator specified as the |
FederatedAuthenticator
Type: object
Endpoint
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | |
authentication | AuthenticationType | Yes | 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 |
FederatedAuthenticatorPUTRequest
Type: object
FederatedAuthenticatorListResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultAuthenticatorId | string | ||
authenticators | array of FederatedAuthenticatorListItem |
FederatedAuthenticatorListItem
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
authenticatorId | string | The ID of the authenticator. | |
name | string | The name of the authenticator. | |
isEnabled | boolean | Default: | |
definedBy | string | Allowed values: | |
self | string | The URL of the identity provider. |
MetaOutboundConnectorListItem
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | The identifier of the connector. | |
name | string | The name of the connector. | |
self | string | The URL of the identity provider. |
MetaOutboundConnector
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | The identifier of the connector. | |
name | string | The name of the connector. | |
displayName | string | The display name of the connector. | |
blockingEnabled | boolean | Default: | |
rulesEnabled | boolean | Default: | |
properties | array of MetaProperty |
ProvisioningRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
jit | JustInTimeProvisioning | ||
outboundConnectors | OutboundProvisioningRequest |
ProvisioningResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
jit | JustInTimeProvisioning | ||
outboundConnectors | OutboundConnectorListResponse |
OutboundProvisioningRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultConnectorId | string | Yes | The identifier of the connector. |
connectors | array of OutboundConnector |
OutboundConnector
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | Yes | The identifier of the connector. |
name | string | The name of the connector. | |
isEnabled | boolean | Default: | |
isDefault | boolean | Default: | |
blockingEnabled | boolean | Default: | |
rulesEnabled | boolean | Default: | |
properties | array of Property |
OutboundConnectorPUTRequest
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | The identifier of the connector. | |
name | string | The name of the connector. | |
isEnabled | boolean | Default: | |
isDefault | boolean | Default: | |
blockingEnabled | boolean | Default: | |
rulesEnabled | boolean | Default: | |
properties | array of Property |
OutboundConnectorListResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
defaultConnectorId | string | The identifier of the connector. | |
connectors | array of OutboundConnectorListItem |
OutboundConnectorListItem
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
connectorId | string | The identifier of the connector. | |
name | string | The name of the connector. | |
isEnabled | boolean | Default: | |
self | string | The URL of the identity provider. |
Roles
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mappings | array of RoleMapping | ||
outboundProvisioningRoles | array of string |
IdPGroup
Type: object
Represents an IdP group supported by an Identity Provider.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the IdP group |
id | string | UUID of the IdP group |
Claims
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
userIdClaim | Claim | ||
roleClaim | Claim | ||
mappings | array of ClaimMapping | ||
provisioningClaims | array of ProvisioningClaim |
JustInTimeProvisioning
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
isEnabled | boolean | Yes | Default: |
scheme | string | Allowed values: | |
userstore | string | Default: | |
associateLocalUser | boolean | Specifies if the JIT-provisioned account should be associated with the local user account. Default: | |
accountLookupAttributeMappings | array of object | This variable specifies the mapping between the federated attributes and the local user attributes for account lookup. | |
attributeSyncMethod | string | This variable specifies the method used for syncing attributes between the JIT-provisioned user account and the local user account. WSO2 Identity Platform allows the following syncing methods: <ul> <li><code>OVERRIDE_ALL</code>: All attributes of the local user account will be overridden by the attributes received from the external identity provider.</li> <li><code>NONE</code>: None of the attributes received from the identity provider will be synced with the local user account.</li> <li><code>PRESERVE_LOCAL</code>: Only the attributes received from the identity provider will be updated while preserving the other attributes of the local user account.</li> </ulAllowed values: |
ConnectedApps
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
count | integer | ||
links | array of Link | ||
connectedApps | array of ConnectedApp |
ConnectedApp
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
appId | string | The ID of the connected application. | |
self | string | The URL of the connect application. |
IdentityProviderTemplateListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
count | integer | ||
links | array of Link | ||
templates | array of IdentityProviderTemplateListItem |
IdentityProviderTemplateListItem
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | ||
description | string | ||
image | string | ||
category | string | Allowed values: | |
displayOrder | integer | ||
services | array of Service | ||
self | string | The URL of the identity provider. |
IdentityProviderTemplate
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | Yes | The name of the identity provider (IdP). |
description | string | The name of the identity provider (IdP). | |
image | string | The URL to the logo image of the identity provider (IdP). | |
category | string | Allowed values: | |
displayOrder | integer | ||
idp | IdentityProviderPOSTRequest | Yes |
TrustedTokenIssuerPOSTRequest
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
image | string | ||
templateId | string | ||
certificate | Certificate | Yes | |
alias | string | ||
issuer | string | Yes | |
claims | Claims |
TrustedTokenIssuerResponse
Type: object
17 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
name | string | ||
description | string | ||
templateId | string | ||
isEnabled | boolean | Default: | |
isPrimary | boolean | Default: | |
image | string | ||
isFederationHub | boolean | ||
homeRealmIdentifier | string | ||
certificate | Certificate | ||
alias | string | ||
issuer | string | ||
claims | Claims | ||
roles | Roles | ||
groups | IdPGroupsConfig | IdP groups supported by the IdP. | |
federatedAuthenticators | FederatedAuthenticatorListResponse | ||
provisioning | ProvisioningResponse |
ImplicitAssociationPutRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
isEnabled | boolean | ||
lookupAttribute | array of Attributes |
ImplicitAssociationResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
isEnabled | boolean | ||
lookupAttribute | array of Attributes |
Service
Type: string
Attributes
Type: string
SharedOrganizationsResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
links | array of Link | ||
sharingMode | SharingMode | ||
organizations | array of BasicOrganizationResponse |
SharingMode
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
policy | string | The sharing scope reported for the organization. Only future-applicable policies are reported. Possible values:
|
BasicOrganizationResponse
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes | |
orgHandle | string | Yes | |
parentId | string | Yes | The parent organization ID. |
status | string | Yes | Allowed values: |
ref | string | Yes | |
hasChildren | boolean | Yes | |
depthFromRoot | integer | Yes | |
sharingMode | SharingMode |
IdentityProviderShareSelectedRequestBody
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
organizations | array of OrgShareConfig | Yes |
OrgShareConfig
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
orgId | string | Yes | |
policy | string | Yes | Sharing scope for this organization. Possible values:
|
IdentityProviderShareAllRequestBody
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
policy | string | Yes | Sharing scope for all organizations. Possible values:
|
IdentityProviderUnshareSelectedRequestBody
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes | |
orgIds | array of string | Yes |
IdentityProviderUnshareAllRequestBody
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
identityProviderId | string | Yes |
Was this page helpful?