Authenticate SWA exposed through Front Door with AAD. #1117
Unanswered
andreaskasc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I have a SWA that I want to authenticate with AAD (using also an app registration). Following the documentation I successfully do that with attached config (let's say that my swa url is swa.com):
swa.config.txt
I also have a custom domain (let's call it mydomain.com) and I have created a route so that my swa is exposed through FD from url mydomain.com/swa. Here is where the problem starts. When going to mydomain.com/swa I am redirected to mydomain.com/.auth/login/aad... which is not correct and it gives me 404.
I have also tried to hardcode the redirection to swa.com/.auth/login/aad?post_login_redirect_uri=mydomain.com/doc. This doesn't produce any error but after the authentication flow is complete it doesn't redirect back to mydomain.com/swa as I would expect by setting post_login_redirect_uri. It just stays to swa.com.
Any ideas if my requirement is achievable through SWA configuration?
Best regards,
Andreas
Beta Was this translation helpful? Give feedback.
All reactions