1

I have to implement Intuit's openid authentication in our MVC 5 c# app. On their site, the specify the custom URL to post your authentication requests to: https://openid.intuit.com/OpenId/Provider.

In the base template for an MVC app, I see the ability to enable well known openid providers:

//OAuthWebSecurity.RegisterMicrosoftClient(
//    clientId: "",
//    clientSecret: "");

//OAuthWebSecurity.RegisterTwitterClient(
//    consumerKey: "",
//    consumerSecret: "");

//OAuthWebSecurity.RegisterMicrosoftClient(
//    clientId: "",
//    clientSecret: "");

//OAuthWebSecurity.RegisterTwitterClient(
//    consumerKey: "",
//    consumerSecret: "");

//OAuthWebSecurity.RegisterFacebookClient(
//    appId: "",
//    appSecret: "");

//OAuthWebSecurity.RegisterGoogleClient();

But since I need to connect to some other provider, how do I do it? I assume I need to create a custom provider somehow, but have not been able to find any example of how to do that.

This answer looked promising, but it links out to the actual example and the link is dead.

Community
  • 1
  • 1
crichavin
  • 4,672
  • 10
  • 50
  • 95
  • Not sure if this will be helpful- https://intuitdeveloper.lc.intuit.com/questions/800930-reconnect-c-or-net-example and https://intuitdeveloper.lc.intuit.com/questions/1228669-how-to-configure-net-owin-to-use-intuit-openid-for-external-authentication – Souvik Ghosh Oct 20 '16 at 04:45
  • @SouvikGhosh thankyou for that, but from my understanding, that link deals with authorization to connect your app to quickbooks using OAuth, not single signon using Intiuit's openid provider...am I correct? – crichavin Oct 20 '16 at 15:11

1 Answers1

1

You do have to create a customer provider. See the code for GenericOpenIdClient.cs in this SO answer.

Community
  • 1
  • 1
crichavin
  • 4,672
  • 10
  • 50
  • 95