Redirect user to custom login page when using Azure AD

前端 未结 3 1653
情话喂你
情话喂你 2020-12-17 00:37

I\'m using the following code example to plug in Azure AD login to my application (https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet).

I\'m finding that

3条回答
  •  旧时难觅i
    2020-12-17 01:15

    This maybe what I'm looking for...

    • non-interactive authentication in a native client (https://github.com/AzureADSamples/NativeClient-Headless-DotNet)

    This sample allows a user to login to Azure AD without the need to use Azure AD's native browser based logins.

    I understand this is somewhat considered an anti pattern as I'll be forgoing Azure's built in mechanisms for handling multi factor auth, password resets etc. but I'll retain full control of the experience.

    ==== Edit ==== This isn't the way I want to go as I'll be stripping out a lot of what AAD offers out the box. In essence I'd like to keep AAD's control flows but I just want to have the ability to control what page a user lands on when a user isn't logged in.

    Currently the flow is: Not authorised -> 302 redirect -> AAD login

    I'd like: Not authorised -> 302 redirect -> Self hosted login required page -> User login button press -> 302 redirect -> AAD login

    Its this flow I can't seem to work out.

提交回复
热议问题