Authenticate for the Web Widget Classic and Zendesk simultaneously | Community
Skip to main content

Authenticate for the Web Widget Classic and Zendesk simultaneously

  • January 23, 2023
  • 6 replies
  • 0 views

Hi,

We have a web widget installed on our web page. When the end user logs in our page, we run authentication for the web widget so he/she could view restricted articles in the web widget and this part is working correctly.

But since the user is not authenticated for the zendesk help center(only for web widget), clicking on the View Original Article button or opening the article link in a new tab will redirect user to the Remote login URL.

My question is how can we authenticate user for the zendesk help center too when we are doing authentication for the web widget, without forcing him/her to go to "https://our_account.zendesk.com/access/jwt?jwt=<jwt_token>". Can we do it programmatically with curl for example?

Single sign-on and  JSON Web Token are enabled

Thanks

6 replies

Greg29
  • January 23, 2023

Hi Gurgen! At this time, we don't have a solution to address this, even with a hacked together, unsupported effort. There is work being done in the authentication area that might address this, but I'm not 100% sure, so I've reached out to that team and I'll see what they have to say. I'll drop you a line when I hear back.


  • Author
  • January 24, 2023

Hi Greg!

Thanks for the quick answer.

Today I tried with hidden iframe action="https://our_account.zendesk.com/access/jwt?jwt=<jwt_token>" and seems it worked, but not sure if it's a good workaround.

I hope that team will give a hint to how solve this problem or at least will tell if my solution is a good one.


  • Author
  • January 24, 2023

Hi Greg again!

I have another small question regarding Web Widget Authentication

If the user was authenticated for the web widget successfully

window.zESettings = {
    webWidget: {
      authenticate: {
        jwtFn: function(callback) {
          callback('YOUR_JWT_TOKEN');
            }
        }
    }
};

do we need to do reauthentication after certain amount of time? Will the web widget become unavailable if the user stays in our page for a long period of time? If yes, how often should we do reauthentication with the following code

zE(function () {
zE('webWidget', 'helpCenter:reauthenticate');
});

Thanks for your support


  • January 12, 2024

Is there any update on this one? We would like to do the same, and prevent the user from being asked to sign in


  • January 17, 2024

Hi @gurgen did you ever get an answer on this or get it working? We're having the same issue and it's really impacting the customer experience


Tipene
  • January 30, 2024

Hi James,

I don't think there has been any changes to the functionality since Greg's reply. That said, I'll follow up with the product team to see if they can share any more insights.

Thanks,

Tipene