OpenID Connect with Amazon Cognitov1.0+

Configure the OpenID Connect plugin with Amazon Cognito User Pools. User Pools are a multi-tenant LDAP-like user repository combined with an OAuth2 and an OpenID Connect interface.

Prerequisites

  • Set up an Amazon Cognito User Pool and Application Definition before configuring the plugin.

Environment variables

  • ISSUER: The issuer authentication URL for your IdP. For Amazon Cognito, that typically looks like this: https://cognito-idp.$REGION.amazonaws.com/$REGION_$POOL_ID/.well-known/openid-configuration

  • CLIENT_ID: The client ID that the plugin uses when it calls authenticated endpoints of the IdP.

  • CLIENT_SECRET: The client secret needed to connect to your IdP.

  • TOKEN_SALT: A random string that decK requires (v1.59 and later) so session credentials aren’t regenerated on every sync. This parameter is optional for other formats. For example, generate one with openssl rand -base64 16.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!