How to mobile number login redirect ticket page in portal customization?

Hi team,

We have a requirement where customers should be able to log in to the Freshdesk customer portal using their phone number and an OTP sent to their registered mobile device. Upon successful authentication, users should gain access to the portal.

we are trying to login page with mobile number login successfully, then redirect the customer ticket page freshdesk ,is possible for freshdesk login page customer portal. Please give me any configurations or custom developments are required, we would appreciate your guidance on the best approach.

Looking forward to your response.

Hi @Annalakshmi_Manivasa ,

Yes, it is possible to achieve this through portal customization. I have worked on a similar use case for Freshservice.

You can implement it using SSO with JWT or OAuth. Please ensure:

  • A dedicated page is built to handle the validation process.
  • Upon successful validation, users are redirected to the portal seamlessly.

Thank you!

1 Like

Hi @Janani,

Could you please provide more information about this case?

Also, could you share an example of the developer perceptive?

Are you referring only to mobile number authentication, or should the user be redirected to the ticket page after successful mobile verification?

Hi @Janani ,

Greeting!.

we are configure sso with jwt is ,

open incogdino window click,
image

the url is, https://identifyyou.freshdesk.com/sso/jwt/login?response_type=id_token&client_id=813306303109949745&scope=openid%20email%20profile&state=fwst_ae8dc46e79d863677bb09d7024aaa13cbb50d6eae642929a1a208358f47f81d7cd3aee872dc3a5e8b1df00bdb2521f483734f56e37e8a914dd55fa7d5e1e12e36ecd7f96597d0cc3b2bfaf9c1be0b2821004d321ad64260a7c905d09e658492a39c58e00a32960923719ef76fe62ddf1&redirect_uri=https://identifyyou19.myfreshworks.com/sp/OIDC/813306303109949745/implicit&registration_id=813306303109949745&nonce=T7D7Pfbv2OHPNoRZ

Then redirect the url which page is dispaly ,Please give me a solution

Hi @Annalakshmi_Manivasa ,

Is your redirect URL fully developed ? So you will have to validate the user in the app or the page you are developing.

For SSO, Please refer to Freshworks support

Hi janani,

Can we using SSO with existing freshdesk IDP’s using mobile number

Hi @Annalakshmi_Manivasa ,

Could you please share the details of your current configuration?

Typically, we need to build a page that performs user verification and then redirects them to the Freshworks SSO page. You will also need to implement a script on the front-end portal to trigger the login with SSO automatically, ensuring that users are navigated seamlessly without needing to manually click on ‘Login with SSO’.

Hi @Janani,

Please find the code and the error we are facing in the screenshots below. We would be grateful if you could let us know how to retrieve or create the state and nonce values passed in the redirect URL.

we are generated JWT token and use redirect URL

https://.myfreshworks.com/sp/OIDC/629884134309915544/implicit?state=xxx&id_token=xxxx
is throw error

Thank you!

Hi @janani,

Finally we are create a valid JWT token and redirect portal ticket page.

Thanks for your help.

one doubt ,is it possible without email id in payload then create valid token?

for example,

{

“sub”:req.body.id.toString(),

“username”: req.body.name,

“iat”: Math.floor(Date.now() / 1000) ,

“surname”:“”,

“phone”: phone,

“nonce”: req.body.nonce

}

If it is possible ,how to proceed .

we are trying to email id is null or empty throw the error

Any possible for without email id please share me

As email is unique identifier and to login email is necessary.

To solve this you can map dummy email using the name, eg: janani@dummymail.com to all the contacts.

Now this has to be mapped with the mobile number so you can pull the email from your end and add it to the payload

Thanks!