24
Views
3
Comments
How to use OAuth2.0 to implement 2FA and SSO.
Application Type
Reactive
Service Studio Version
11.55.6 (Build 63936)
Platform Version
11.33.0 (Build 44426)

Hello everyone, 

I would like to ask how to use OAuth2.0 to implement 2FA and SSO.

I am creating an external app and want to use OAuth2.0 to implement two-factor authentication and single sign-on.

I found the Microsoft Login Connector forge and implemented the login function according to the video below.

https://www.youtube.com/watch?v=0h-T6bwr1Uc

But I don't understand whether this has achieved the function I want, and after logging in, how can I get the mail address?

2025-04-17 05-42-16
Ajit Kurane

Hi YITONG LYU ,

You can implement the SSO using Microsoft Login Connector forge. You need to download the necessary forge component for the same.

On the callback page after successful authorisation you can get logged in user id based on that Id you can get the user's email ID.

Please refer below pdf file for the demo.

Thanks.

Integrating with Microsoft OAuth.pdf
2024-12-24 00-58-47
YITONG LYU

Hi @Ajit Kurane ,

Thank you for your replay. 

After I did it like the pdf, after entering the Login screen, there is no page for entering the password, only a page for entering the mail address.

Login Screen:

After entering, it jumps to the Microsoft Authenticator verification screen.

I would like to ask, is this considered 2-factor authentication? Or Windows  authentication?

After Microsoft authentication, how can I log in to Outsystems directly and get the current user's email?

2025-04-17 05-42-16
Ajit Kurane

It is two factor authentication and you can get user email details on callback page after succesfull authentication of the user. Then you can use the current user Id and based on that fetch the email Id from backend.

Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.