POST Identity Providers

The POST /Identity/Providers method is used to add an identity provider in Keyfactor Command. This method returns HTTP 200 OK on a success with the details of the identity provider.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/identity_providers/modify/

Table 535: POST Identity Providers Input Parameters

Name In

Description

Authentication Enabled Body A Boolean indicating whether the identity provider is enabled (true) or not (false). The default is true.
Note:  An identity provider cannot be disabled if the provider is used as the default identity provider for login or as the API client identity provider. Internally defined identity providers cannot be disabled. A disabled identity provider cannot be used to authenticate to Keyfactor Command.
Authentication Scheme Body Required. A string indicating the authentication scheme (name) for the identity provider. This must be a unique value among identity providers.
Display Name Body Required. A string indicating the display name for the identity provider. This must be a unique value among identity providers.
Parameters Body

Required. An object containing information for each parameter set for the identity provider. ClosedShow parameter details.

PermissionSetId Body

A string indicating the Keyfactor Command reference ID of the permission set applied to the identity provider. The default permission set is the Global set.

Note:  In order to view or edit an identity provider in the Keyfactor Command Management Portal or with the Keyfactor API, a user must be assigned a security role that has been granted the /identity_providers/read/ and /identity_providers/modify/ (for edits) permissions and that has the same permission set applied to it as has been applied to the identity provider.
ProviderType Body

Required. A string indicating the Keyfactor Command provider type of the identity provider. Possible values are:

  • Generic—select this for Keycloak

  • Auth0

Table 537: POST Identity Providers Response Data

Name

Description

Authentication Enabled A Boolean indicating whether the identity provider is enabled (true) or not (false).
Note:  An identity provider cannot be disabled if the provider is used as the default identity provider for login or as the API client identity provider. Internally defined identity providers cannot be disabled. A disabled identity provider cannot be used to authenticate to Keyfactor Command.
Authentication Scheme A string indicating the authentication scheme (name) for the identity provider. This must be a unique value among identity providers.
Display Name A string indicating the display name for the identity provider. This must be a unique value among identity providers.
Id A string containing the Keyfactor Command reference GUID for the identity provider.
Parameters

An array of objects containing information for each parameter set for the identity provider. ClosedShow parameter details.

Each parameter (Table 536: Identity Provider Parameters) contains the data shown in Table 539: Identity Provider Response Parameter Structure.

PermissionSetId

A string indicating the Keyfactor Command reference ID of the permission set applied to the identity provider.

Note:  In order to view or edit an identity provider in the Keyfactor Command Management Portal or with the Keyfactor API, a user must be assigned a security role that has been granted the /identity_providers/read/ and /identity_providers/modify/ (for edits) permissions and that has the same permission set applied to it as has been applied to the identity provider.
TypeId

A string indicating the Keyfactor Command reference GUID for the type of identity provider. Possible values include:

  • DFB94650-E4EB-402A- B807-4F3CC91F712D (Active Directory)

  • F96B6464-11B7-4499- BEA7-B5AA6BA1571D (Generic—select this for Keycloak)

  • 5AA04122-CD7C-48BA- AC11-F39E30AE8720 (Auth0)

Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed An API is a set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In Keyfactor Command, it refers to the workflow builder, which allows you to automate event-driven tasks such as when a certificate is requested, revoked or found in a certificate store. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the top of the Management Portal page next to the Log Out button.