Create Identity Provider
Creates a new identity provider. This operation allows the creation of a new identity provider for authentication purposes.
Request body
Example request
{
"type": "oidc",
"enabled": true,
"login_path": "myapp",
"config": {
"issuer_url": "https://konghq.okta.com/oauth2/default",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"claim_mappings": {
"name": "name",
"email": "email",
"groups": "groups"
}
}
}Response
An identity provider configuration. This response represents the configuration of a specific identity provider, which can be either OIDC or SAML.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"type": "oidc",
"enabled": true,
"login_path": "myapp",
"config": {
"issuer_url": "https://konghq.okta.com/oauth2/default",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"claim_mappings": {
"name": "name",
"email": "email",
"groups": "groups"
}
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
Changed in 8 of the 75 revisions of this API.12328
- ▲
the
config/oneOf[subschema #2: SAML Identity Provider Config]/callback_urlresponse's property type/format changed fromstring/pathtostring/urifor status201response-property-type-changed
- ▲
the
config/oneOf[subschema #2: SAML Identity Provider Config]/sp_metadata_urlresponse's property type/format changed fromstring/pathtostring/urifor status201response-property-type-changed
- ▲
- ▲
removed
ConfigureOIDCIdentityProviderConfigfrom theconfigrequest propertyoneOflistrequest-property-one-of-removed
- ○
added
OIDCIdentityProviderConfigto theconfigrequest propertyoneOflistrequest-property-one-of-added
- ○
added the optional write-only property
config/oneOf[subschema #1: OIDC Identity Provider Config]/client_secretto the response with the201statusresponse-optional-write-only-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
added the new
typeenum value to theallOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/ruleresponse property for the response status400response-property-enum-value-added
- ●
- ▲
the response property
allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterChoiceItem]/sourcebecame nullable for the status400response-property-became-nullable
- ▲
the response property
allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterDependentItem]/sourcebecame nullable for the status400response-property-became-nullable
- ▲
the response property
allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMaximumLength]/sourcebecame nullable for the status400response-property-became-nullable
- ▲
the response property
allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMinimumLength]/sourcebecame nullable for the status400response-property-became-nullable
- ▲
the response property
allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/sourcebecame nullable for the status400response-property-became-nullable
- ○
the
emailrequest property default valueemailwas addedrequest-property-default-value-added
- ○
the
groupsrequest property default valuegroupswas addedrequest-property-default-value-added
- ○
the
namerequest property default valuenamewas addedrequest-property-default-value-added
- ○
the
emailresponse's property default valueemailwas added for the status201response-property-default-value-added
- ○
the
groupsresponse's property default valuegroupswas added for the status201response-property-default-value-added
- ○
the
nameresponse's property default valuenamewas added for the status201response-property-default-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the
emailrequest property default valueemailwas removedrequest-property-default-value-removed
- ○
the
groupsrequest property default valuegroupswas removedrequest-property-default-value-removed
- ○
the
namerequest property default valuenamewas removedrequest-property-default-value-removed
- ○
the
emailresponse's property default valueemailwas removed for the status201response-property-default-value-removed
- ○
the
groupsresponse's property default valuegroupswas removed for the status201response-property-default-value-removed
- ○
the
nameresponse's property default valuenamewas removed for the status201response-property-default-value-removed
This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the
emailrequest property default valueemailwas addedrequest-property-default-value-added
- ○
the
groupsrequest property default valuegroupswas addedrequest-property-default-value-added
- ○
the
namerequest property default valuenamewas addedrequest-property-default-value-added
- ○
the
emailresponse's property default valueemailwas added for the status201response-property-default-value-added
- ○
the
groupsresponse's property default valuegroupswas added for the status201response-property-default-value-added
- ○
the
nameresponse's property default valuenamewas added for the status201response-property-default-value-added
- ○
- ▲
removed
schemas-SAMLIdentityProviderConfigfrom theconfigrequest propertyoneOflistrequest-property-one-of-removed
- ▲
added
OIDCIdentityProviderConfigSAMLIdentityProviderConfigto theconfigresponse propertyoneOflist for the response status201response-property-one-of-added
- ○
added the new optional request property
login_pathnew-optional-request-property
- ○
added
SAMLIdentityProviderConfigto theconfigrequest propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
login_pathto the response with the201statusresponse-optional-property-added
- ○
removed
schemas-OIDCIdentityProviderConfigschemas-SAMLIdentityProviderConfigfrom theconfigresponse propertyoneOflist for the response status201response-property-one-of-removed
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
SAMLIdentityProviderConfigfrom theconfigrequest propertyoneOflistrequest-property-one-of-removed
- ▲
added
schemas-OIDCIdentityProviderConfigschemas-SAMLIdentityProviderConfigto theconfigresponse propertyoneOflist for the response status201response-property-one-of-added
- ●
removed the request property
login_pathrequest-property-removed
- ●
removed the optional property
login_pathfrom the response with the201statusresponse-optional-property-removed
- ○
added the new optional request property
enablednew-optional-request-property
- ○
added
schemas-SAMLIdentityProviderConfigto theconfigrequest propertyoneOflistrequest-property-one-of-added
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
removed
OIDCIdentityProviderConfigSAMLIdentityProviderConfigfrom theconfigresponse propertyoneOflist for the response status201response-property-one-of-removed
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲