Hi guys,
So i have a project requirement where I am suppose to implement google login but I also have two roles that are Admin and Users. What I want to do is redirect the user and admin to their respective page when they successfully login via google. For Google login i am using Google Authentication Core Component from forge.
The problem I am facing while doing so is, that I have specified the redirect url in the block of the Google Authentication Core Component. So it always redirects me to the same page. Can someone help me out with this.
Thankyou,
Abhishek Dubey
Hi @Abhishek Dubey ,
It's fine, you can use this same page to implement the redirect logic:
Suggestion:
1. Do not add any UI element on that page, so it won't render.
2. Add data action where you can decide or implement logic to fetch user role information and add on after fetch event to that data action, where you can implement the redirect logic based upon the outcome of your data action.
Hope this helps,
Regards,
Manish Jawla
Hi Abhishek Dubey,
Add an action in the redirecting screen. Inside it add a condition "CheckAdminRole()" then you can navigate to the corresponding screen
Hope this will help you
Thanks
Try this:
1.Add an Action for Redirecting Screen.
2.Inside the Action, Add a Condition "CheckAdminRole()": It is responsible for determining whether the user has admin privileges.
3.Navigate to the Corresponding Screen: Inside the condition where the user has admin privileges, you want to include code to navigate to the screen corresponding to the admin role.