I have integrated Okta as an IdP in Keycloak. I am facing two issues with the integration:
- When the user logs in for the first time, a new user is created in Keycloak with appropriate roles. But for the subsequent logins, all the mapped roles get deleted from the Keycloak user. Even if I add roles to the user manually from Keycloak, as soon as the user logs in using Okta, the roles are removed from the user’s profile.
- When logging out, I see the following error in the browser if I logout after the token expires:
{"errorCode":"invalid_client","errorSummary":"A client_id must be provided in the request.","errorLink":"invalid_client","errorId":"oaevKZNtJFrRjqTZ_wCOsx6lA","errorCauses":[]}