236
Views
10
Comments
[Microsoft Login Connector Reactive] How to implement
microsoft-login-connector-reactive
Reactive icon
Forge asset by MS Login Connector Team
Application Type
Reactive

Hello again, im stuck in how to implement this asset in my reactive web app, im new with OS and i love it but i have no idea on how to use this authentication logic, i have access to my organization Azure AD and did the first configuration in my AD but idk whats next to implement login.

thanks in advanced.

2020-09-21 08-42-47
Vincent Koning

Hi Eduardo,

For some reason this part of the documentation has been lost. I will try to recreate it in the near future. In short you need to do the following;

To login:

Open the Login action of the Common -> Login page. Change it so it looks like this;

The GetOAuth2AuthenticationURL is from the Microsoft Login Connector. The output of this action is used in the RedirectToUrl widget.  This will enable the login action.


To logoff:

Open the ClientLogout action from the Common -> UserInfo block. Change it so it looks like this;

The output if GetOAuth2LogoutURL is used int he RedirectToUrl widget.


I hope this helps.

Greetings,

Vincent

UserImage.jpg
Eduardo Vargas

Hello Vincent, thank you for your reply.

I still can't make this work, this is what i did:

But i still don't know where i need to put the azure app configuration details app id, secret, etc.

Thanks in advanced.

UserImage.jpg
Jorge Santos

Hello, you need Microsoft Login Connector Management. Please find it here:

https://www.outsystems.com/forge/component-overview/7716/microsoft-login-connector-management

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

Hi Vincent,

After successfully authentication how can I redirect user on the specific dashboard screen based on the user role ?
Pleaes share some insight .

Thanks.

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

Hi Vincent,

After successfully authentication how can I redirect user on the specific dashboard screen based on the user role ?

I am able to add only single screen name in the RedirectToScreen parameter option.

How can I add multiple screens there based on user role to land the user on perticular dashboard page based on his role.

Pleaes share some insight .

Thanks. 

2020-09-21 08-42-47
Vincent Koning

What I would probably do is create a "landing" screen that will then determine the correct portal screen of the logged in user and then redirect the user to that screen.

You can't do this earlier because you have no idea who is logging on.

UserImage.jpg
Karthik Saravanan

Hello All,

I know this is an old thread, but did any of you get a 404 error when redirecting to the call back page.

As far as I know I have configured everything right. It sends the authentication request. But while returning to the call back page I get this 404 error

Format of the response I get is something like this

https://<<Myenvironment URL>>/MicrosoftLoginConnectorReactive/CallbackPage?code=XXXXX&state=XXXX&session_state=XXXXXX

I intentionally blurred the values with XXXXXX

Thanks

Karthik

2020-09-21 08-42-47
Vincent Koning

Hi Karthik,

This is a known issue that can't be solved by the component itself. You will need to change some settings to the OutSystems factory. For this you need that Factory Configuration tool. More info about this and what you need to change is available in the documentation.

Greetings,

Vincent

UserImage.jpg
Karthik Saravanan

Ooops.. I read the documentation of that component and here is what it says

"Warning: This component is not supported in Personal or Trial environments. Personal and Trial are offered on shared infrastructure where advanced configurations may affect other users and are therefore not supported. "


In any case do you have pointers as to what must be changed. I can then specifically look at that.

2020-09-21 08-42-47
Vincent Koning

The answer to your problem is really an underlying issue with the platform. You can't change that via any way then with Factory Configuration. What you can do is change the URL by removing the session_state variable in the URL. This will shorten it to an acceptable length. 

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