Configures a Cognito User Pool Client to use Cognito as the identity provider with support for OAuth flows and scopes.

Terraform Template

resource "aws_cognito_user_pool" "pool" {
  name = "pool"
}

resource "aws_cognito_user_pool_client" "userpool_client" {
  allowed_oauth_flows = ["code", "implicit", "true"]
  allowed_oauth_flows_user_pool_client = true
  allowed_oauth_scopes = ["email", "openid"]
  callback_urls = ["https://example.com"]
  name = "client"
  supported_identity_providers = ["COGNITO"]
  user_pool_id = aws_cognito_user_pool.pool.id
}