I have created a api gateway to plug a oidc-like system to okta as an IDP.
Now I am stuck at the token api, OKTA authorize server keep saying it cannot acquire access token
I have already implemented the token api response look like:
{
"access_token": "eyJraWQiOiI4ZmVmM",
"id_token": "eyJraWQiOiI4",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "openid"
}
and the id_token payload look like this:
{
"aud": "<client id in Okta IDP config>",
"sub": "<The id from the idp",
"auth_time": "<auth time from the idp>",
"iss": "<issuer in Okta IDP config>"
}
Also checked that the api is working fine without connecting to Okta.
In addition, the total same settings are working in UAT environment.
The problem occours when setting up the production environment.
Any idea for me to check any config I have missed?