Skip to main content
Version: 8.8.x

OpenID Connect

Entry Point: /openidconnect/{scope}/form

The OpenID Connect resource family enables to authenticate shoppers using a third-party Identity Provider.

note

These links will only be available if OpenID Connect authentication is enabled.

Upgrade Access Token​

Upgrade a public access token to a registered access token.

Workflow​

  1. Start with root
  2. GET the link with rel: openidconnectform
  3. Fill out the form
  4. POST the form using the link with rel: submitaction

Request Fields​

Type: openidconnect.create-openid​

NameDescriptionType
authorization-codeThe authorization code received from the Identity Provider after the user is authenticated.string
code-verifierThe PKCE code verifier generated by the client.string
original-redirect-uriThe front-end URL that the Identity Provider redirected the user to after authentication.string

Read Configuration​

Read the OpenID Connect configuration that has been setup in Cortex.

Workflow​

  1. Start with root
  2. GET the link with rel: references
  3. GET the link with rel: openidconnectconfiguration
  4. Render the response

Response​

Sample​

{
"self": {
"type": "openidconnect.openid-configuration",
"uri": "/openidconnect/mobee/configuration",
"href": "https://cortex.elasticpath.com/cortex/openidconnect/mobee/configuration"
},
"messages": [],
"links": [
{
"rel": "references",
"type": "references.references",
"uri": "/references",
"href": "https://cortex.elasticpath.com/cortex/references"
}
],
"authorization-url": "https://signin.elasticpath.com/oauth2/v1/authorize",
"client-id": "0oanktb6h9zAK2XiM357",
"scopes": "openid profile email"
}