Hey everyone, running into a weird issue with our Webchat SSO integration after rotating our IdP certificates in Okta.
We use Genesys Cloud as our contact center platform and have Webchat embedded in our customer portal. We configured SSO using the genesys.cloud.sso flow, relying on SAML assertions from Okta to mint the Genesys JWT. Everything was working fine until yesterday when we rotated the signing certificate in Okta.
I updated the SAML certificate in the Genesys Cloud Admin console under Security > Single Sign-On > Identity Providers. I also verified that the Assertion Consumer Service (ACS) URL and Entity IDs match perfectly. However, users are now getting a 401 Unauthorized error when trying to connect to the chat widget.
Looking at the browser network tab, the initial SAML POST to the ACS endpoint succeeds (200 OK). But the subsequent call to /api/v2/auth/oauth/token (or whatever the internal token exchange endpoint is for SSO) is failing. The response body just says invalid_grant with no further details.
I’ve checked the Genesys Cloud audit logs and see the SAML assertion is being received, but the token exchange step is failing. I tried clearing the Okta session and forcing a fresh login, but same result. I also verified that the name_id attribute mapping in Okta matches the email attribute expected by Genesys.
Has anyone else hit this after a cert rotation? Is there a cache issue on the Genesys side that takes longer to clear than expected, or did I miss a step in updating the metadata? We’re using the latest Webchat SDK (genesys-cloud-messaging-webchat v2.x). Any pointers would be appreciated. Thanks!