Your Azure AD instance must be configured to redirect any authentication request back to redirect.html
upon successful authentication. redirect.html
will handle sending the authenticated user to their intended destination.
For example, if an unauthenticated user navigates to "myapp.example/deep/link/to/somewhere/in/your/app", they will be taken through the normal Azure AD login process, sent to redirect.html
, then properly routed to the deep link in your app.
Hey Mark,
Sorry for the late response, I've been away for a bit. I just wanted to say a big thank you for taking the time to set this up for me (and I'm sure others), it's greatly appreciated! 🙌🏻
I noticed a few similarities and differences in our code. You seem to be using react-adal while I am using adal-angular. And effectively our redirect.html files are the same with the exception of the if statement... but this adds the token to the url in my case. (localhotst:5000/#id_token=wiufvwrgidoiei...). Is this the intended behaviour?