Recent searches


No recent searches

How to redirect to my app UI (in Zendesk platform) after successful Google authentication



Posted Jul 17, 2023

Hello..

I'm facing some issue while integrating Google authentication for users...

I have created 2 pages for my app (in zendesk platform).. Sign-in page and Homepage..

So, Initially sign-in page will execute in my app as below..

After Entering authorized email, it will redirect to Google authentication flow in a separate tab..
But, after successful authentication, the homepage is executing on the tab opened for Google authentication itself (local browser).. But, I want to execute that in my app..

I created a route file, using bottle framework..

And another thing to share is, When I run the app file using "zcli apps:server", it will run in localhost:4567.. But, when i mention that in the manifest and route file, it shows "CANNOT GET /" type of error.. 
In the server-side app documentation from zendesk, they just created a basic route file with 8080 port.. So, If I use that means, the sign-in page is rendering..
So, I'm not sure Which port I have to use.. And also How to redirect to my app UI in zendesk platform after successful google authentication..

 

Looking forward for solutions..

Thank you


0

4

4 comments

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi Abdul,
 
Would your use case support your Google sign-in flow using redirects instead of a pop-up?  It might be simpler for your web app to handle.

1


It would be really nice if Zendesk provided a repo of example custom apps that utilise the most common patterns

0


image avatar

Trent Zinkstok

Zendesk Product Manager

Hi Sal

Please take a look at our Demo Apps on GitHub, these may be of help.

 

 

0


Thank you Christopher Kennedy and @...

Its working  :).. 

I'm having the following queries, to launch my app successfully..

 

Query 1:

I integrated the google auth process.. But, I need some alignments here..

So, initially, it will render the "GOOGLE SIGNIN BUTTON".. The user needs to click (click1) the "GOOGLE SIGNIN BUTTON" to open the login tab, and the user needs to click (click2) the corresponding account for authentication.. The flow is working fine..

But, I need to reduce the no of click from 2 to 1 (It should directly open the login tab).. So, I need to click the google sign-in button automatically (It should not be manual click).. 

Is there anyway to reduce the no of clicks..

 

Query 2:

I'm also looking for an alternative way.. Can you please tell the feasibility for that..

Actually, Inorder to use our app in zendesk platform, it needs some sort of Access token or ID token.. So, whether its possible to get these tokens during Zendesk account sign-in (with Google credential or Zendesk credential)?

Instead of integrating authentication (Google auth or Zendesk auth) in our app, I'm looking to get access token or ID token during Zendesk account sign-in itself..

Please let me know whether its possible or not.. Or Please suggest any other solutions..

Thank you..

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post