How do I configure my .net 5 application to skip login screen if windows is configured

  .net-5, asp.net5, authentication, bearer-token, windows

I have created an application in .net 5 with uses bearer authentication for login. Now I have another requirement where in the application allows windows user to login if the name is already registered.
Can some one explain me the approach to accomplish this. In the application I have a flag "Enable windows authentication" based on that it should first make windows access approach. if it fails then bearer token auth approach.

Source: Windows Questions

LEAVE A COMMENT