Authenticated Messaging with Auth0

Hello,

Has anyone successfully integrated authenticated web messaging using Auth0 as their IAM?

We're currently running into issues when attempting to retrieve the JWT token. We are using the v2/webdeployments/token/oauthcodegrantjwtexchange API.

We are receiving a 401 error code. When we look at the contextID for logging information, it is stating that there is an unexpected ISS value.

Ex.
unexpected iss value, expected https://test-auth.com/ , got: https://no-auth-for-you.com/

When we add the correct value https://test-auth.com/ that is called out, we are still receiving the same error code. Even though it has the expected ISS value being sent.

Hi,

Thanks for reaching out.

The service checks indeed that the issuer from your discovery document matches the iss claim in the IdToken (See Final: OpenID Connect Discovery 1.0 incorporating errata set 2)
Looks like this is not the case.
This may be checked manually by retrieving the discovery document (<authorization server url>/.well-known/openid-configuration. See issuer element.
Authenticate manually (/authorize endpoint) and exchange a token (/token) using the code retrieved.
Check from the received token that iss is consistent.

When we add the correct value https://test-auth.com/ that is called out, we are still receiving the same error code. Even though it has the expected ISS value being sent.

Is this done in OAuth configuration ?
Do not use iss in Genesys Api v2/webdeployments/token/oauthcodegrantjwtexchange.
This is a reserved use for multi-tenancy and won't solve your issue.

You may want to check this FAQ in Auth0.

Hope this helps,

Regards,
V.P.

Hi VP,

Thank you. In our environment, we are using a multi-tenant Auth server. With that being the case, should we still omit the ISS flag in the API?

Thank you,

Jorge R

Ah ok, then in that case it should be likely set.

To know if you should set it or not, verify that the iss value is set by the authorization server when calling back the redirect url and the value set should be used to call the /oauthcodegrantjwtexchange endpoint.

If no iss parameter is set in the redirect url, you should not set it.

Regards,
V.P.

Thank you for the assistance, we were able to get this sorted. We were using the incorrect discover link.

Thank you,

Jorge R

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.