Closed jahnavi310 closed 1 month ago
I believe that is handled via the agent.getConfiguration() method, you could attach it to any event handler, most preferably on agent init. You get both the name and username.
Correct, agent.getConfiguration() returns the agent's name, username, and arn, as well as other details.
We are using a custom CCP in an iframe and have successfully setup SSO authentication via okta defining the relay state as our current web app - this works fine.
What we need is to know who is the current logged in user, right now the only way we can think of is reading the username of from the iframe, we are not able to decode the cookie since its a federated token and not a jwt token.
Does the stream API have any way of achieving this?
Thanks in advance