We are having issue logging in with ‘G Suite’ via embedded framework with the error ‘accounts.google.com refused to connect’ It seems to be google doesn’t allow the sign-on window to be embedded?
So I update the framework.js to set ‘ dedicatedLoginWindow ’ to true and add ‘https://apps.mypurecloud.com/crm/authWindow.html' as Authorized redirect URIs in our OAuth Client as described in the document
But when I switch the url to point to our PureCloud with the same settings (framework.js) , it doesn’t seem to be working - the login window is still embedded.
Hi Juji,
I have a followup question regarding the separate login window on iframe. Hope you can help us
As you pointed our, by adding dedicatedLoginWindow=true to iframe url prompts a separate login window. However the login window becomes embedded after we logging user out via https://login.mypurecloud.com/logout?client_id=<your client id>&redirect_uri=<a registered redirect for your app>
It only works if user clicks on 'Logout' button via iframe.
Is there a way we can automatically log user out of PureCloud without losing the separate login window? thanks
By changing from
dedicatedLoginWindow: true
to
dedicatedLoginWindow: (() => {
let dedicatedLoginWindow = new URLSearchParams(window.location.search).get('dedicatedLoginWindow');
Thanks for providing additional information.
I'm still trying to understand what you're trying to do.
Are you trying to log the user out programmatically by redirecting the user to https://login.mypurecloud.com/logout?client_id=<your client id>&redirect_uri=<a registered redirect for your app> (by changing window.location.href value) on a certain event such as when you receive a specific message from a parent window while retaining dedicatedLoginWindow option?
If so, in the current implementation, a way to programmatically log the user out of private embeddable framework (while retaining the dedicatedLoginWindow option) is not really supported yet. We can throw something in our backlog to prioritize our work.
Please let me know if you have any additional questions.
Yes, We are trying to log user out programmatically by redirecting the user to https://login.mypurecloud.com/logout?client_id=<your client id>&redirect_uri=<a registered redirect for your app> while retaining the dedicatedlogin window
I will mention to our team that this isn't supported yet. Thanks for the clarification