skip to Main Content

Is it possible to config OpenIdConnectAuthentication somewhere outside of the app start like API controller, to be able to have multiple authentications like google or facebook and OpenId Connect and also be able to turn it on or off depend on our needs?

2

Answers


  1. You must configure OWIN in the app start; however, you can configure your scenario inside app start with all the different providers you want to support.

    Login or Signup to reply.
  2. The OpenIdConnectAuthentication (Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationMiddleware) you mentioned is a OWIN middleware. The web application which support OWIN starts with a number of steps, you can check the detailed steps from link here.

    be able to have multiple authentications like google or facebook and OpenId Connect and also be able to turn it on or off depend on our needs?

    You may consider to use Azure AD B2C tenant which supports Facebook, Google+, LinkedIn, and Amazon and you can easily config the identity provider from Azure portal. More detail about Azure AD B2C, you can check this link.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search