Closed brbeaird closed 6 months ago
Upon deeper testing, this appears to actually work as it should. I was trying to bypass things a bit because we don't want our users to have to know to click the "Sign in with Azure" button, but not all of our users are AD users, so we can't simply turn on the auto-redirect option across the board.
My end solution was to:
Originally, I had been trying to conditionally handle the redirect to Azure myself, building the URL manually; this mostly worked but for some reason broke the redirect after login to whatever page the user was trying to hit prior to login.
Is there a way to have this redirect the user to where they originally intended to go within the portal? It looks like you would normally do this using the state parameter in the Azure login URL, and I do see in the code where it parses that parameter, even looking for the "r" value to recognize that as a redirect URL, but it does not seem to actually do anything with it. I would really like the ability to send users directly to their destination instead of dumping everyone into a hard-coded page.