Clancey / SimpleAuth

The Simplest way to Authenticate and make Rest API calls in .Net
Apache License 2.0
171 stars 48 forks source link

Extending Simple Auth To Use OpenID Connect Providers #65

Open ethanae opened 6 years ago

ethanae commented 6 years ago

Is it currently possible for me to extend SimpleAuth to connect to a third-party identity provider? For example, an identity provider built on top of Identity Server.

Clancey commented 6 years ago

Absolutely. It was designed to be super extendable. I haven't taken the time to look into OpenID, but it looks like it is OAuth, IF you want to try you can most likely just use the OAuth Provider.

If not, you can completely change the behavior by overriding a few methods. A great example is the FitBit provider. They do some odd stuff, and I was able to adjust accordingly.

If it really is a different beast from OAuth, You just have to subclass the Authenticated API and it will start working. Feel free to give it a try. If it does need something special, lets get an OpenIDApi started. I love pull requests! Just let me know how I can help.

ethanae commented 6 years ago

I'll give this a go!

Thanks for your response and all your work on the project. :+1: