
ShardulP.00748 (Customer) asked a question.
Hi Team,
I want to grant access to Users post successful authentication in my SPA(developing in React). There are different roles for users and according to role I want to grant access to them.
Currently I am authenticating users using okta OpenID connect, I have also implemented Facebook and Google authentications in okta.
Could you please guide me on how do I authorize users after successful authentication.
Thank you.
Regards,
Shardul Arun Pathak

Hello @ShardulP.00748 (Customer),
I hope you are doing fine.
On the Applications you can use the Role Based Access Controls, please check the following link, scroll down to the Role Based Access Controls explanation: https://developer.okta.com/blog/2017/10/13/okta-groups-spring-security
Regards,
Natalia,
Okta Inc.
Hi Natalia,
Thank you very much for your response and sharing the URL.
I am doing good, how are you doing?
I have implemented role bases authentication by following similar steps which are mentioned in that URL. Only I have implemented it for React Application.
Right now I am just showing role in front of name after logged in e.g. Shardul Pathak- Admin.
We want to build UI based on user's role, Admin will see different Menus and different components, Visitor will see less items in Menu and different components etc.
It will really help me to develop this UI according to roles.
If I have any different query or stuck I will let you know.
Thank you.
Regards,
Shardul Arun Pathak