138
Views
8
Comments
[Microsoft Login Connector Reactive] Copy Callback Page to client app?
microsoft-login-connector-reactive
Reactive icon
Forge asset by MS Login Connector Team

I'm trying to implement this on my Reactive web app abd have a question regarding the callback page: should I copy it to my app? I'm confused because the Demo app doesn't have it and the GetOAuth2AuthenticationUrl on allows to set the callback parameters, but then looking at the server action GetCallbackUrl on MicrosoftLoginConnectorCore (the action used to get the authorization code) I get the impression its assuming there's a CallbackPage on the client app.

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

Hi Joao,

The callback page is (currenly) in the Reactive component. You need to make sure that this is configured correctly in the Azure AD App Registration page. Check the screenshot on how to configure these reply urls


2022-02-18 15-32-27
João Almeida
Champion

That part in the OAuth login is easy. The problem is later when I need to refresh the token, the callback tries to go through /<MyModule>/CallbackPage instead of /MSLoginConnectorReactive/CallbackPage, and since on Azure I only have /MSLoginConnectorReactive/CallbackPage configured it fails.


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

Hi João,

Ah, I know that problem and I have already solved it (together with some others). I'll try to get a new stable version somewhere this week and put it in the forge.

2022-02-18 15-32-27
João Almeida
Champion

Awesome! 

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

Hi João,

I just uploaded a new version and your problem should be fixed. Please let me know if this has been indeed the case.

Kind regards,

Vincent

2022-02-18 15-32-27
João Almeida
Champion

It was indeed the case, but the old url is still hardcoded in the get auth url action.


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

Aai.. That is nasty. I'll try to fix it later today. That whole request flow needs some attention in general. 

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

Hi João,

Fyi, I just uploaded a new version that fixed the typo. 

Kind regards,

Vincent Koning

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