Temporarily disable Azure AD authentication in app RRS feed

  • Question

  • User968218215 posted


    I have a local Blazor server .NET5 app which has Azure AD authentication enabled.

    What is the easiest way for me to temporarily disable the auth while I'm testing etc.   


    Friday, February 5, 2021 4:12 PM

All replies

  • User-474980206 posted

    it depends on your requirements. I find it easier to keep the Azure AD authentication when in development. But you can use a dev only authentication when in dev. Just have dev enabled middleware that creates a principal and claims. you could use local identity when in dev mode. Lots of options. You could also use facebook or google as you oauth server when in dev. 

    Friday, February 5, 2021 5:58 PM
  • User968218215 posted

    Thanks for your reply.

    I’m not sure if I was clear or not in my question.

    The only thing I want to do is temporarily turn of the auth and turn it on when I want in my project - the easiest way to do this. There must be something I comment out from my project to do this?


    Friday, February 5, 2021 6:04 PM