Skip to content

Replace an IdP

Request

OAuth 2.0 scope:
  • okta.idps.manage

Replaces an identity provider (IdP) integration by idpId

Path
idpIdstringrequired

id of IdP

Example:0oa62bfdjnK55Z5x80h7
Bodyapplication/jsonrequired

Updated configuration for the IdP

capabilitiesArray of strings

The capabilities of an OIDC IdP. This array is only supported for OIDC IdPs.

  • Set capabilities to ["XAA"] for an IdP that only issues Identity Assertion JWT Authorization Grants (ID-JAGs) for Cross App Access (XAA). With ["XAA"], protocol.endpoints.authorization, protocol.endpoints.token, and protocol.credentials.client.client_secret aren't required. protocol.issuer and protocol.endpoints.jwks are still required.
  • Set capabilities to ["SSO", "XAA"] for an IdP that signs users in to Okta and also issues ID-JAGs for XAA. All the standard OIDC IdP properties are required. Setting capabilities doesn't enable XAA for the IdP. To accept ID-JAGs from the IdP, set its IdP usage to Cross App Access only or SSO and Cross App Access in the Admin Console. You can't set capabilities to ["XAA"] on an IdP whose IdP usage includes SSO or factor authentication.
issuerModestring(IdentityProviderIssuerMode)

Indicates whether Okta uses the original Okta org domain URL or a custom domain URL in the request to the social IdP

Default:"DYNAMIC"
Enum ValueDescription
ORG_URL

In the authorize request to the social IdP, Okta uses the Okta org's original domain URL (https://${yourOktaDomain}) as the domain in the redirect_uri.

CUSTOM_URL

In the authorize request to the social IdP, Okta uses the custom domain URL as the domain in the redirect_uri. You can set issuerMode to CUSTOM_URL only if you have a custom URL domain configured.

DYNAMIC

In the authorize request to the social IdP, Okta uses the custom domain URL as the domain in the redirect_uri if the request was made from the custom domain URL. Otherwise, Okta uses the Okta org's original domain URL if the request was made from the Okta org domain.

namestring, <= 100 characters

Unique name for the IdP

Example:"Sample IdP"
policyobject(IdentityProviderPolicy)

Policy settings for the IdP. The following provisioning and account linking actions are supported by each IdP provider:

IdP typeUser provisioning actionsGroup provisioning actionsAccount link actionsAccount link filters
SAML2AUTO or DISABLEDNONE, ASSIGN, APPEND, or SYNCAUTO, DISABLEDgroups, users
X509 and any type beginning with IDV_DISABLEDNo support for JIT provisioning
All other IdP typesAUTO, DISABLEDNONE or ASSIGNAUTO, DISABLEDgroups, users
propertiesobject or null(IdentityProviderProperties)

The properties in the IdP properties object vary depending on the IdP type

protocolany
statusstring(LifecycleStatus)
Enum:"ACTIVE""INACTIVE"
typestring(IdentityProviderType)

The IdP object's type property identifies the social or enterprise IdP used for authentication. Each IdP uses a specific protocol, therefore the protocol object must correspond with the IdP type. If the protocol is OAuth 2.0-based, the protocol object's scopes property must also correspond with the scopes supported by the IdP type. For policy actions supported by each IdP type, see IdP type policy actions.

IDV vendors published through the Okta Integration Network (OIN) use a type value that matches the integration's OIN app name. This value is assigned when the integration is submitted and is unique for every vendor. These integrations otherwise follow the same general request and response format as IDV_CLEAR, IDV_INCODE, and IDV_STANDARD.

TypeDescriptionCorresponding protocolCorresponding protocol scopes
AMAZONAmazon as the IdPOpenID Connectprofile, profile:user_id
APPLEApple as the IdPOpenID Connectnames, email, openid
DISCORDDiscord as the IdPOAuth 2.0identify, email
FACEBOOKFacebook as the IdPOAuth 2.0public_profile, email
GITHUBGitHub as the IdPOAuth 2.0user
GITLABGitLab as the IdPOpenID Connectopenid, read_user, profile, email
GOOGLEGoogle as the IdPOpenID Connectopenid, email, profile
IDV_PERSONAPersona as the IDV IdP (legacy). Okta recommends the newer IDV_INTEGRATOR-7184229_PERSONAIDV_1 type for new integrations.ID verification
IDV_INTEGRATOR-7184229_PERSONAIDV_1Persona as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_CLEARCLEAR Verified as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_INCODEIncode as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_STANDARDCustom IDV as the IDV IdPID verificationopenid, profile, identity_assurance
LINKEDINLinkedIn as the IdPOAuth 2.0r_emailaddress, r_liteprofile
LOGINGOVLogin.gov as the IdPOpenID Connectemail, profile, profile:name
LOGINGOV_SANDBOXLogin.gov's identity sandbox as the IdPOpenID Connectemail, profile, profile:name
MICROSOFTMicrosoft Enterprise SSO as the IdPOpenID Connectopenid, email, profile, https://graph.microsoft.com/User.Read
OIDCIdP that supports OpenID ConnectOpenID Connectopenid, email, profile
PAYPALPaypal as the IdPOpenID Connectopenid, email, profile
PAYPAL_SANDBOXPaypal Sandbox as the IdPOpenID Connectopenid, email, profile
SALESFORCESalesForce as the IdPOAuth 2.0id, email, profile
SAML2Enterprise IdP that supports the SAML 2.0 Web Browser SSO ProfileSAML 2.0
SPOTIFYSpotify as the IdPOpenID Connectuser-read-email, user-read-private
X509Smart Card IdPMutual TLS
XEROXero as the IdPOpenID Connectopenid, profile, email
YAHOOYahoo as the IdPOpenID Connectopenid, profile, email
YAHOOJPYahoo Japan as the IdPOpenID Connectopenid, profile, email
OKTA_INTEGRATIONIdP that supports the OpenID Connect Org2Org IdPOpenID Connectopenid, email, profile
Enum:"AMAZON""APPLE""DISCORD""FACEBOOK""GITHUB""GITLAB""GOOGLE""IDV_CLEAR""IDV_INCODE""IDV_INTEGRATOR-7184229_PERSONAIDV_1"
curl -i -X PUT \
  https://subdomain.okta.com/api/v1/idps/0oa62bfdjnK55Z5x80h7 \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "0oa62bc8wppPw0UGr0h7",
    "type": "SAML2",
    "name": "Example SAML IdP",
    "status": "INACTIVE",
    "created": null,
    "lastUpdated": "2016-03-29T21:23:45.000Z",
    "protocol": {
      "type": "SAML2",
      "endpoints": {
        "sso": {
          "url": "https://idp.example.com/saml2/sso",
          "binding": "HTTP-REDIRECT",
          "destination": "https://idp.example.com/saml2/sso"
        },
        "slo": {
          "url": "https://idp.example.com/slo",
          "binding": "HTTP-POST"
        },
        "acs": {
          "binding": "HTTP-POST",
          "type": "INSTANCE"
        }
      },
      "algorithms": {
        "request": {
          "signature": {
            "algorithm": "SHA-256",
            "scope": "REQUEST"
          }
        },
        "response": {
          "signature": {
            "algorithm": "SHA-256",
            "scope": "ANY"
          }
        }
      },
      "settings": {
        "nameFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
        "participateSlo": true
      },
      "credentials": {
        "trust": {
          "issuer": "https://idp.example.com",
          "audience": "https://www.okta.com/saml2/service-provider/spCQJRNaaxs7ANqKBO7M",
          "kid": "your-key-id",
          "additionalKids": [
            "additional-key-id"
          ]
        }
      }
    },
    "policy": {
      "provisioning": {
        "action": "AUTO",
        "profileMaster": true,
        "groups": {
          "action": "NONE"
        },
        "conditions": {
          "deprovisioned": {
            "action": "NONE"
          },
          "suspended": {
            "action": "NONE"
          }
        }
      },
      "accountLink": {
        "filter": null,
        "action": "AUTO"
      },
      "subject": {
        "userNameTemplate": {
          "template": "idpuser.subjectNameId"
        },
        "filter": null,
        "matchType": "USERNAME"
      },
      "mapAMRClaims": false,
      "trustClaims": false,
      "maxClockSkew": 120000
    },
    "_links": {
      "metadata": {
        "href": "https://{yourOktaDomain}/api/v1/idps/0oa62bc8wppPw0UGr0h7/metadata.xml",
        "type": "application/xml",
        "hints": {
          "allow": [
            "GET"
          ]
        }
      },
      "acs": {
        "href": "https://{yourOktaDomain}/sso/saml2/0oa62bc8wppPw0UGr0h7",
        "type": "application/xml",
        "hints": {
          "allow": [
            "POST"
          ]
        }
      },
      "users": {
        "href": "https://{yourOktaDomain}/api/v1/idps/0oa62bc8wppPw0UGr0h7/users",
        "hints": {
          "allow": [
            "GET"
          ]
        }
      },
      "activate": {
        "href": "https://{yourOktaDomain}/api/v1/idps/0oa62bc8wppPw0UGr0h7/lifecycle/activate",
        "hints": {
          "allow": [
            "POST"
          ]
        }
      }
    }
  }'

Responses

Success

Bodyapplication/json
capabilitiesArray of strings

The capabilities of an OIDC IdP. This array is only supported for OIDC IdPs.

  • Set capabilities to ["XAA"] for an IdP that only issues Identity Assertion JWT Authorization Grants (ID-JAGs) for Cross App Access (XAA). With ["XAA"], protocol.endpoints.authorization, protocol.endpoints.token, and protocol.credentials.client.client_secret aren't required. protocol.issuer and protocol.endpoints.jwks are still required.
  • Set capabilities to ["SSO", "XAA"] for an IdP that signs users in to Okta and also issues ID-JAGs for XAA. All the standard OIDC IdP properties are required. Setting capabilities doesn't enable XAA for the IdP. To accept ID-JAGs from the IdP, set its IdP usage to Cross App Access only or SSO and Cross App Access in the Admin Console. You can't set capabilities to ["XAA"] on an IdP whose IdP usage includes SSO or factor authentication.
createdstring, (date-time)(Created)read-only

Timestamp when the object was created

Example:"2016-01-03T18:15:47.000Z"
idstringread-only

Unique key for the IdP

Example:"0oaWma58liwx40w6boYD"
issuerModestring(IdentityProviderIssuerMode)

Indicates whether Okta uses the original Okta org domain URL or a custom domain URL in the request to the social IdP

Default:"DYNAMIC"
Enum ValueDescription
ORG_URL

In the authorize request to the social IdP, Okta uses the Okta org's original domain URL (https://${yourOktaDomain}) as the domain in the redirect_uri.

CUSTOM_URL

In the authorize request to the social IdP, Okta uses the custom domain URL as the domain in the redirect_uri. You can set issuerMode to CUSTOM_URL only if you have a custom URL domain configured.

DYNAMIC

In the authorize request to the social IdP, Okta uses the custom domain URL as the domain in the redirect_uri if the request was made from the custom domain URL. Otherwise, Okta uses the Okta org's original domain URL if the request was made from the Okta org domain.

lastUpdatedstring, (date-time)(LastUpdated)read-only

Timestamp when the object was last updated

Example:"2016-01-03T18:15:47.000Z"
namestring, <= 100 characters

Unique name for the IdP

Example:"Sample IdP"
policyobject(IdentityProviderPolicy)

Policy settings for the IdP. The following provisioning and account linking actions are supported by each IdP provider:

IdP typeUser provisioning actionsGroup provisioning actionsAccount link actionsAccount link filters
SAML2AUTO or DISABLEDNONE, ASSIGN, APPEND, or SYNCAUTO, DISABLEDgroups, users
X509 and any type beginning with IDV_DISABLEDNo support for JIT provisioning
All other IdP typesAUTO, DISABLEDNONE or ASSIGNAUTO, DISABLEDgroups, users
propertiesobject or null(IdentityProviderProperties)

The properties in the IdP properties object vary depending on the IdP type

protocolany
statusstring(LifecycleStatus)
Enum:"ACTIVE""INACTIVE"
typestring(IdentityProviderType)

The IdP object's type property identifies the social or enterprise IdP used for authentication. Each IdP uses a specific protocol, therefore the protocol object must correspond with the IdP type. If the protocol is OAuth 2.0-based, the protocol object's scopes property must also correspond with the scopes supported by the IdP type. For policy actions supported by each IdP type, see IdP type policy actions.

IDV vendors published through the Okta Integration Network (OIN) use a type value that matches the integration's OIN app name. This value is assigned when the integration is submitted and is unique for every vendor. These integrations otherwise follow the same general request and response format as IDV_CLEAR, IDV_INCODE, and IDV_STANDARD.

TypeDescriptionCorresponding protocolCorresponding protocol scopes
AMAZONAmazon as the IdPOpenID Connectprofile, profile:user_id
APPLEApple as the IdPOpenID Connectnames, email, openid
DISCORDDiscord as the IdPOAuth 2.0identify, email
FACEBOOKFacebook as the IdPOAuth 2.0public_profile, email
GITHUBGitHub as the IdPOAuth 2.0user
GITLABGitLab as the IdPOpenID Connectopenid, read_user, profile, email
GOOGLEGoogle as the IdPOpenID Connectopenid, email, profile
IDV_PERSONAPersona as the IDV IdP (legacy). Okta recommends the newer IDV_INTEGRATOR-7184229_PERSONAIDV_1 type for new integrations.ID verification
IDV_INTEGRATOR-7184229_PERSONAIDV_1Persona as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_CLEARCLEAR Verified as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_INCODEIncode as the IDV IdPID verificationopenid, profile, identity_assurance
IDV_STANDARDCustom IDV as the IDV IdPID verificationopenid, profile, identity_assurance
LINKEDINLinkedIn as the IdPOAuth 2.0r_emailaddress, r_liteprofile
LOGINGOVLogin.gov as the IdPOpenID Connectemail, profile, profile:name
LOGINGOV_SANDBOXLogin.gov's identity sandbox as the IdPOpenID Connectemail, profile, profile:name
MICROSOFTMicrosoft Enterprise SSO as the IdPOpenID Connectopenid, email, profile, https://graph.microsoft.com/User.Read
OIDCIdP that supports OpenID ConnectOpenID Connectopenid, email, profile
PAYPALPaypal as the IdPOpenID Connectopenid, email, profile
PAYPAL_SANDBOXPaypal Sandbox as the IdPOpenID Connectopenid, email, profile
SALESFORCESalesForce as the IdPOAuth 2.0id, email, profile
SAML2Enterprise IdP that supports the SAML 2.0 Web Browser SSO ProfileSAML 2.0
SPOTIFYSpotify as the IdPOpenID Connectuser-read-email, user-read-private
X509Smart Card IdPMutual TLS
XEROXero as the IdPOpenID Connectopenid, profile, email
YAHOOYahoo as the IdPOpenID Connectopenid, profile, email
YAHOOJPYahoo Japan as the IdPOpenID Connectopenid, profile, email
OKTA_INTEGRATIONIdP that supports the OpenID Connect Org2Org IdPOpenID Connectopenid, email, profile
Enum:"AMAZON""APPLE""DISCORD""FACEBOOK""GITHUB""GITLAB""GOOGLE""IDV_CLEAR""IDV_INCODE""IDV_INTEGRATOR-7184229_PERSONAIDV_1"
Response
{ "id": "0oa62bc8wppPw0UGr0h7", "type": "SAML2", "name": "Example SAML IdP", "status": "INACTIVE", "created": null, "lastUpdated": "2016-03-29T21:23:45.000Z", "protocol": { "type": "SAML2", "endpoints": { … }, "algorithms": { … }, "settings": { … }, "credentials": { … } }, "policy": { "provisioning": { … }, "accountLink": { … }, "subject": { … }, "mapAMRClaims": false, "trustClaims": false, "maxClockSkew": 120000 }, "_links": { "metadata": { … }, "acs": { … }, "users": { … }, "activate": { … } } }