Giter VIP home page Giter VIP logo

world-domination.web.authentication's Introduction

WTF

Not impressed

I just don't get it

Angry

Forever code alone

Insane programmer

Success Programmer

A .NET package for using Facebook, Google or Twitter to Authenticate your Users

I'm blond. I'm dumb. But I program.

So I want a damn simple way to authenticate with Facebook, Twitter or wherever.

I DON'T CARE IF IT'S OAUTH OR OPENID OR O-GO-SCREW-YOURSELF.

I just want to do

  1. Send me off to Facebook, Google or Twitter.
  2. Come back to my site and the site now has whatever user data they handed over.

That's It.

  • No dabasase crap.
  • No Session stuff.
  • No over-generic-crazy one-solution-fits-every-provider-on-the-interwebs.

So install this bad boy :

Yes! Install this package!!

Code or GTFO

Here's the main code that does what we want (excluding error checking, etc, for brevity).

public RedirectResult RedirectToAuthenticate(string providerKey)
{
    var uri = _authenticationService.RedirectToAuthenticationProvider(providerKey);
    return Redirect(uri.AbsoluteUri);
}

public ActionResult AuthenticateCallback(string providerKey)
{
    var model = new AuthenticateCallbackViewModel();
    model.AuthenticatedClient = _authenticationService.CheckCallback(providerKey, Request.Params);
    return View(model);
}

Ok. You had me at Bad Luck Brian. Now what?

  1. Read the sample code pages in the project's Wiki - take 1 minute to grok.
  2. Install nuget pacakge.
  3. Win.

Play it forward

Don't be scared to fork and then make some pull requests. I ❤️ pull requests!

Then this simple library can actually be really helpful to more than 1 person (le moi) on this rock called Earth.

Disclaimer

No blonds or Unicorns were harmed in the coding of this library.

Pew Pew

world-domination.web.authentication's People

Contributors

buildstarted avatar codeprogression avatar phillip-haydon avatar purekrome avatar seguemark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.