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.

Identity provider API

Download OpenAPI (YAML)Version v1

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

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return.

offsetqueryinteger (int32)

Number of records to skip for pagination.

filterquerystring

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"

sortOrderquerystring

Defines the order in which the retrieved records should be sorted. This parameter is not supported yet

Allowed values: ASC, DESC

sortByquerystring

Attribute by which the retrieved records should be sorted. This parameter is not supported yet

requiredAttributesquerystring

Specifies the required parameters in the response. This parameter is not supported yet

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
namestringYes

The name of the identity provider (IdP).

descriptionstring

The name of the identity provider (IdP).

imagestring

The URL to the logo image of the identity provider (IdP).

isPrimaryboolean

Default: false

isFederationHubboolean

Default: false

homeRealmIdentifierstring
certificateCertificate
aliasstring
claimsClaims
rolesRoles
federatedAuthenticatorsFederatedAuthenticatorRequest
provisioningProvisioningRequest

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider

forcequeryboolean

Enforces the forceful deletion of an identity provider, federated authenticator, or an outbound provisioning connector even though a service provider refers to it.

Default: false

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

Schema: PatchRequest

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
federated-authenticator-idpathstringYes

ID of a federated authenticator

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
outbound-provisioning-connector-idpathstringYes

ID of an outbound provisioning connector

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

This represents the federated authenticators to be updated

Schema: FederatedAuthenticatorRequest

2 properties
NameTypeRequiredDescription
defaultAuthenticatorIdstringYes

ID of the federated authenticator to be used as the default authenticator for the respective identity provider.

authenticatorsarray of FederatedAuthenticator

Includes the list of federated authenticators supported by the respective identity provider. This should include the authenticator specified as the defaultAuthenticator.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

federated-authenticator-idpathstringYes

ID of the federated authenticator.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

federated-authenticator-idpathstringYes

ID of the federated authenticator.

Request body (required): application/json

This represents the federated authenticator to be updated

Schema: FederatedAuthenticatorPUTRequest

7 properties
NameTypeRequiredDescription
authenticatorIdstring
namestring
isEnabledboolean

Default: false

isDefaultboolean

Default: false

definedBystring

Allowed values: SYSTEM, USER

propertiesarray of Property
endpointEndpoint

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

This represents the outbound provisioning connectors to be updated

Schema: OutboundProvisioningRequest

2 properties
NameTypeRequiredDescription
defaultConnectorIdstringYes

The identifier of the connector.

connectorsarray of OutboundConnector

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

outbound-provisioning-connector-idpathstringYes

ID of the outbound provisioning connector.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

outbound-provisioning-connector-idpathstringYes

ID of the outbound provisioning connector.

Request body (required): application/json

This represents the outbound provisioning connector to be updated

Schema: OutboundConnectorPUTRequest

7 properties
NameTypeRequiredDescription
connectorIdstring

The identifier of the connector.

namestring

The name of the connector.

isEnabledboolean

Default: false

isDefaultboolean

Default: false

blockingEnabledboolean

Default: false

rulesEnabledboolean

Default: false

propertiesarray of Property

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

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
NameTypeRequiredDescription
isEnabledbooleanYes

Default: false

schemestring

Allowed values: PROMPT_USERNAME_PASSWORD_CONSENT, PROMPT_PASSWORD_CONSENT, PROMPT_CONSENT, PROVISION_SILENTLY. Default: PROVISION_SILENTLY

userstorestring

Default: PRIMARY

associateLocalUserboolean

Specifies if the JIT-provisioned account should be associated with the local user account.

Default: false

accountLookupAttributeMappingsarray of object

This variable specifies the mapping between the federated attributes and the local user attributes for account lookup.

attributeSyncMethodstring

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> </ul

Allowed values: OVERRIDE_ALL, NONE, PRESERVE_LOCAL. Default: OVERRIDE_ALL

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

This represents the claim config to be updated

Schema: Claims

4 properties
NameTypeRequiredDescription
userIdClaimClaim
roleClaimClaim
mappingsarray of ClaimMapping
provisioningClaimsarray of ProvisioningClaim

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

This represents the role config to be updated.

Schema: Roles

2 properties
NameTypeRequiredDescription
mappingsarray of RoleMapping
outboundProvisioningRolesarray of string

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return.

offsetqueryinteger (int32)

Number of records to skip for pagination.

identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider which is shared with organizations.

beforequerystring

Base64 encoded cursor value for backward pagination.

afterquerystring

Base64 encoded cursor value for forward pagination.

filterquerystring

Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations.

limitqueryinteger

Maximum number of records to return.

recursivequeryboolean

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.

excludedAttributesquerystring

Specifies the attributes that should be excluded from the response.

attributesquerystring

Specifies the required parameters in the response. Only 'sharingMode' attribute is currently supported.

/identity-providers/{identity-provider-id}/share?attributes=sharingMode

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
identityProviderIdstringYes
organizationsarray of OrgShareConfigYes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
identityProviderIdstringYes
policystringYes

Sharing scope for all organizations.

Possible values:

  • ALL_EXISTING_AND_FUTURE_ORGS

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
identityProviderIdstringYes
orgIdsarray of stringYes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
identityProviderIdstringYes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
limitqueryinteger (int32)

Maximum number of records to return.

offsetqueryinteger (int32)

Number of records to skip for pagination.

filterquerystring

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"

sortByquerystring

Attribute by which the retrieved records should be sorted. This parameter is not supported yet

sortOrderquerystring

Define the order in which the retrieved tenants should be sorted.

Allowed values: asc, desc

requiredAttributesquerystring

Specifies the required parameters in the response. This parameter is not supported yet

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
namestringYes
descriptionstring
imagestring
templateIdstring
certificateCertificateYes
aliasstring
issuerstringYes
claimsClaims

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
trusted-token-issuer-idpathstringYes

ID of the trusted token issuer.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
trusted-token-issuer-idpathstringYes

ID of the trusted token issuer

forcequeryboolean

Enforces the forceful deletion of an identity provider, federated authenticator, or an outbound provisioning connector even though a service provider refers to it.

Default: false

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
trusted-token-issuer-idpathstringYes

ID of the trusted token issuer.

Request body (required): application/json

Schema: PatchRequest

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
identity-provider-idpathstringYes

ID of the identity provider.

Request body (required): application/json

This represents the implicit association configs to be updated.

Schema: ImplicitAssociationPutRequest

2 properties
NameTypeRequiredDescription
isEnabledboolean
lookupAttributearray of Attributes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

MetaProperty​

Type: object

11 properties
NameTypeRequiredDescription
keystringYes
displayNamestring
descriptionstring
typestring

Allowed values: STRING, BOOLEAN, INTEGER

displayOrderinteger
regexstring
isMandatoryboolean

Default: false

isConfidentialboolean

Default: false

optionsarray of string
defaultValuestring
subPropertiesarray of MetaProperty

Property​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes
valuestring

PatchRequest​

Type: array of Patch

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
NameTypeRequiredDescription
operationstringYes

The operation to be performed.

Allowed values: ADD, REMOVE, REPLACE

pathstringYes

A JSON-Pointer

valuestring

The value to be used within the operations.

Type: object

2 properties
NameTypeRequiredDescription
hrefstring

Path to the target resource.

relstring

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

Certificate​

Type: object

3 properties
NameTypeRequiredDescription
certificatesarray of string
jwksUristring
samlMetadataUristring

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
NameTypeRequiredDescription
namestringYes

The name of the identity provider (IdP).

descriptionstring

The name of the identity provider (IdP).

imagestring

The URL to the logo image of the identity provider (IdP).

isPrimaryboolean

Default: false

isFederationHubboolean

Default: false

homeRealmIdentifierstring
certificateCertificate
aliasstring
claimsClaims
rolesRoles
federatedAuthenticatorsFederatedAuthenticatorRequest
provisioningProvisioningRequest

IdentityProviderResponse​

Type: object

16 properties
NameTypeRequiredDescription
idstring
namestring

The name of the identity provider (IdP).

descriptionstring

The name of the identity provider (IdP).

isEnabledboolean

Default: true

isPrimaryboolean

Default: false

isSharedboolean

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

imagestring
isFederationHubboolean
homeRealmIdentifierstring
certificateCertificate
aliasstring
claimsClaims
rolesRoles
federatedAuthenticatorsFederatedAuthenticatorListResponse
provisioningProvisioningResponse
implicitAssociationImplicitAssociationResponse

IdentityProviderListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

The total number of identity provider's (IdP) listed in the Response.

startIndexinteger
countinteger
linksarray of Link
identityProvidersarray of IdentityProviderListItem

IdentityProviderListItem​

Type: object

16 properties
NameTypeRequiredDescription
idstring

The ID of the identity provider.

namestring

The name of the identity provider.

descriptionstring

The description of the identity provider.

isEnabledboolean

Default: true

imagestring

The logo image of the identity provider.

isPrimaryboolean
isFederationHubboolean
homeRealmIdentifierstring
certificateCertificate
aliasstring
claimsClaims
rolesRoles
federatedAuthenticatorsFederatedAuthenticatorListResponse
provisioningProvisioningResponse
selfstring

The URL of the identity provider.

isSharedboolean

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
NameTypeRequiredDescription
authenticatorIdstring

The authenticator ID.

namestring

The name of the authenticator

definedBystring

Allowed values: SYSTEM, USER

selfstring

The URL of the identity provider.

MetaFederatedAuthenticator​

Type: object

5 properties
NameTypeRequiredDescription
authenticatorIdstring
namestring
displayNamestring
definedBystring

Allowed values: SYSTEM, USER

propertiesarray of MetaProperty

FederatedAuthenticatorRequest​

Type: object

2 properties
NameTypeRequiredDescription
defaultAuthenticatorIdstringYes

ID of the federated authenticator to be used as the default authenticator for the respective identity provider.

authenticatorsarray of FederatedAuthenticator

Includes the list of federated authenticators supported by the respective identity provider. This should include the authenticator specified as the defaultAuthenticator.

FederatedAuthenticator​

Type: object

7 properties
NameTypeRequiredDescription
authenticatorIdstringYes
namestring
isEnabledboolean

Default: false

definedBystring

Allowed values: SYSTEM, USER

isDefaultboolean

Default: false

propertiesarray of Property
endpointEndpoint

Endpoint​

Type: object

4 properties
NameTypeRequiredDescription
uristringYes
authenticationAuthenticationTypeYes

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

propertiesobject

FederatedAuthenticatorPUTRequest​

Type: object

7 properties
NameTypeRequiredDescription
authenticatorIdstring
namestring
isEnabledboolean

Default: false

isDefaultboolean

Default: false

definedBystring

Allowed values: SYSTEM, USER

propertiesarray of Property
endpointEndpoint

FederatedAuthenticatorListResponse​

Type: object

2 properties
NameTypeRequiredDescription
defaultAuthenticatorIdstring
authenticatorsarray of FederatedAuthenticatorListItem

FederatedAuthenticatorListItem​

Type: object

5 properties
NameTypeRequiredDescription
authenticatorIdstring

The ID of the authenticator.

namestring

The name of the authenticator.

isEnabledboolean

Default: false

definedBystring

Allowed values: SYSTEM, USER

selfstring

The URL of the identity provider.

MetaOutboundConnectorListItem​

Type: object

3 properties
NameTypeRequiredDescription
connectorIdstring

The identifier of the connector.

namestring

The name of the connector.

selfstring

The URL of the identity provider.

MetaOutboundConnector​

Type: object

6 properties
NameTypeRequiredDescription
connectorIdstring

The identifier of the connector.

namestring

The name of the connector.

displayNamestring

The display name of the connector.

blockingEnabledboolean

Default: false

rulesEnabledboolean

Default: false

propertiesarray of MetaProperty

ProvisioningRequest​

Type: object

2 properties
NameTypeRequiredDescription
jitJustInTimeProvisioning
outboundConnectorsOutboundProvisioningRequest

ProvisioningResponse​

Type: object

2 properties
NameTypeRequiredDescription
jitJustInTimeProvisioning
outboundConnectorsOutboundConnectorListResponse

OutboundProvisioningRequest​

Type: object

2 properties
NameTypeRequiredDescription
defaultConnectorIdstringYes

The identifier of the connector.

connectorsarray of OutboundConnector

OutboundConnector​

Type: object

7 properties
NameTypeRequiredDescription
connectorIdstringYes

The identifier of the connector.

namestring

The name of the connector.

isEnabledboolean

Default: false

isDefaultboolean

Default: false

blockingEnabledboolean

Default: false

rulesEnabledboolean

Default: false

propertiesarray of Property

OutboundConnectorPUTRequest​

Type: object

7 properties
NameTypeRequiredDescription
connectorIdstring

The identifier of the connector.

namestring

The name of the connector.

isEnabledboolean

Default: false

isDefaultboolean

Default: false

blockingEnabledboolean

Default: false

rulesEnabledboolean

Default: false

propertiesarray of Property

OutboundConnectorListResponse​

Type: object

2 properties
NameTypeRequiredDescription
defaultConnectorIdstring

The identifier of the connector.

connectorsarray of OutboundConnectorListItem

OutboundConnectorListItem​

Type: object

4 properties
NameTypeRequiredDescription
connectorIdstring

The identifier of the connector.

namestring

The name of the connector.

isEnabledboolean

Default: false

selfstring

The URL of the identity provider.

Roles​

Type: object

2 properties
NameTypeRequiredDescription
mappingsarray of RoleMapping
outboundProvisioningRolesarray of string

RoleMapping​

Type: object

2 properties
NameTypeRequiredDescription
idpRolestring
localRolestring

IdPGroupsConfig​

Type: array of IdPGroup

IdP groups supported by the IdP.

IdPGroup​

Type: object

Represents an IdP group supported by an Identity Provider.

2 properties
NameTypeRequiredDescription
namestringYes

Name of the IdP group

idstring

UUID of the IdP group

Claims​

Type: object

4 properties
NameTypeRequiredDescription
userIdClaimClaim
roleClaimClaim
mappingsarray of ClaimMapping
provisioningClaimsarray of ProvisioningClaim

ProvisioningClaim​

Type: object

2 properties
NameTypeRequiredDescription
claimClaim
defaultValuestring

ClaimMapping​

Type: object

2 properties
NameTypeRequiredDescription
idpClaimstring
localClaimClaim

Claim​

Type: object

3 properties
NameTypeRequiredDescription
idstring
uristringYes
displayNamestring

JustInTimeProvisioning​

Type: object

6 properties
NameTypeRequiredDescription
isEnabledbooleanYes

Default: false

schemestring

Allowed values: PROMPT_USERNAME_PASSWORD_CONSENT, PROMPT_PASSWORD_CONSENT, PROMPT_CONSENT, PROVISION_SILENTLY. Default: PROVISION_SILENTLY

userstorestring

Default: PRIMARY

associateLocalUserboolean

Specifies if the JIT-provisioned account should be associated with the local user account.

Default: false

accountLookupAttributeMappingsarray of object

This variable specifies the mapping between the federated attributes and the local user attributes for account lookup.

attributeSyncMethodstring

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> </ul

Allowed values: OVERRIDE_ALL, NONE, PRESERVE_LOCAL. Default: OVERRIDE_ALL

ConnectedApps​

Type: object

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

ConnectedApp​

Type: object

2 properties
NameTypeRequiredDescription
appIdstring

The ID of the connected application.

selfstring

The URL of the connect application.

IdentityProviderTemplateListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
countinteger
linksarray of Link
templatesarray of IdentityProviderTemplateListItem

IdentityProviderTemplateListItem​

Type: object

8 properties
NameTypeRequiredDescription
idstring
namestring
descriptionstring
imagestring
categorystring

Allowed values: DEFAULT, CUSTOM

displayOrderinteger
servicesarray of Service
selfstring

The URL of the identity provider.

IdentityProviderTemplate​

Type: object

7 properties
NameTypeRequiredDescription
idstring
namestringYes

The name of the identity provider (IdP).

descriptionstring

The name of the identity provider (IdP).

imagestring

The URL to the logo image of the identity provider (IdP).

categorystring

Allowed values: DEFAULT, CUSTOM

displayOrderinteger
idpIdentityProviderPOSTRequestYes

TrustedTokenIssuerPOSTRequest​

Type: object

8 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
imagestring
templateIdstring
certificateCertificateYes
aliasstring
issuerstringYes
claimsClaims

TrustedTokenIssuerResponse​

Type: object

17 properties
NameTypeRequiredDescription
idstring
namestring
descriptionstring
templateIdstring
isEnabledboolean

Default: true

isPrimaryboolean

Default: false

imagestring
isFederationHubboolean
homeRealmIdentifierstring
certificateCertificate
aliasstring
issuerstring
claimsClaims
rolesRoles
groupsIdPGroupsConfig

IdP groups supported by the IdP.

federatedAuthenticatorsFederatedAuthenticatorListResponse
provisioningProvisioningResponse

ImplicitAssociationPutRequest​

Type: object

2 properties
NameTypeRequiredDescription
isEnabledboolean
lookupAttributearray of Attributes

ImplicitAssociationResponse​

Type: object

2 properties
NameTypeRequiredDescription
isEnabledboolean
lookupAttributearray of Attributes

Service​

Type: string

Attributes​

Type: string

SharedOrganizationsResponse​

Type: object

3 properties
NameTypeRequiredDescription
linksarray of Link
sharingModeSharingMode
organizationsarray of BasicOrganizationResponse

SharingMode​

Type: object

1 property
NameTypeRequiredDescription
policystring

The sharing scope reported for the organization. Only future-applicable policies are reported.

Possible values:

  • SELECTED_ORG_WITH_ALL_EXISTING_AND_FUTURE_CHILDREN
  • ALL_EXISTING_AND_FUTURE_ORGS

BasicOrganizationResponse​

Type: object

9 properties
NameTypeRequiredDescription
idstringYes
namestringYes
orgHandlestringYes
parentIdstringYes

The parent organization ID.

statusstringYes

Allowed values: ACTIVE, DISABLED

refstringYes
hasChildrenbooleanYes
depthFromRootintegerYes
sharingModeSharingMode

IdentityProviderShareSelectedRequestBody​

Type: object

2 properties
NameTypeRequiredDescription
identityProviderIdstringYes
organizationsarray of OrgShareConfigYes

OrgShareConfig​

Type: object

2 properties
NameTypeRequiredDescription
orgIdstringYes
policystringYes

Sharing scope for this organization.

Possible values:

  • SELECTED_ORG_ONLY
  • SELECTED_ORG_WITH_ALL_EXISTING_AND_FUTURE_CHILDREN

IdentityProviderShareAllRequestBody​

Type: object

2 properties
NameTypeRequiredDescription
identityProviderIdstringYes
policystringYes

Sharing scope for all organizations.

Possible values:

  • ALL_EXISTING_AND_FUTURE_ORGS

IdentityProviderUnshareSelectedRequestBody​

Type: object

2 properties
NameTypeRequiredDescription
identityProviderIdstringYes
orgIdsarray of stringYes

IdentityProviderUnshareAllRequestBody​

Type: object

1 property
NameTypeRequiredDescription
identityProviderIdstringYes

ProcessSuccessResponse​

Type: object

2 properties
NameTypeRequiredDescription
statusstring
detailsstring

Was this page helpful?