Hi,
I’m trying to create a new OpenID Connect connection with Cognito. I’m getting the following error about missing metadata attributes that are in request:
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Issuer metadata missing the following attributes: issuer, authorization_endpoint, jwks_uri”,
“errorCode”: “invalid_body”
}
Here’s the request with some data obfuscated:
{
“name”: “cognito-connection-apiCreated”,
“display_name”: “Cognito OIDC API Created”,
“strategy”: “oidc”,
“options”: {
“set_user_root_attributes”: “on_each_login”,
“client_id”: “”,
“scope”: “profile email openid”,
“upstream_params”: {
“client_secret”: {
“value”: “”
}
}
},
“metadata”: {
“issuer”: “https://cognito-idp.us-east-1.amazonaws.com/us-east-1_genscj3V4”,
“authorization_endpoint”: “https://otts-vitro-customer-domain.auth.us-east-1.amazoncognito.com/oauth2/authorize”,
“jwks_uri”: “https://cognito-idp.us-east-1.amazonaws.com/us-east-1_genscj3V4/.well-known/jwks.json”
}
}
Any idea what’s wrong? Also, is this any easier to work with through the Node.js or Go SDK?
Thanks!
Brian