If a user tries to access a protected view before logging in, they will be prompted to authenticate through the authentication flow and then redirected to the LOGIN_REDIRECT_URL page.
A ?next=<intended_url> query param with could be passed from the middleware, through the callback from AAD and used as the terminal redirection instead of LOGIN_REDIRECT_URL.
If a user tries to access a protected view before logging in, they will be prompted to authenticate through the authentication flow and then redirected to the
LOGIN_REDIRECT_URL
page.A
?next=<intended_url>
query param with could be passed from the middleware, through the callback from AAD and used as the terminal redirection instead ofLOGIN_REDIRECT_URL
.