Giter VIP home page Giter VIP logo

authpack's Introduction

AuthPack

General

AuthPack is a demonstration project for .NET authentication with Twitter, Facebook, Google, LinkedIn, and App.net. It includes sample oAuth API calls for each service.

Installation

Most of the files in this solution are generated by the standard Visual Studio Web Forms template.

  • Important: Update Web.config with service provider authentication keys and secrets.

  • Site.Master - Contains most HTML/Javascript modifications.

  • /Auth - Most of the custom code resides here. Auth.aspx.cs contains sample oAuth calls for each provider.

oAuth Setup

Register your application with the service providers and retrieve the necesseary API keys. Then enter them in web.config.

Twitter - https://dev.twitter.com/apps/new

Facebook - http://developers.facebook.com/docs/guides/web/

Google - https://code.google.com/apis/console/

LinkedIn - https://www.linkedin.com/secure/developer

App.net - https://alpha.app.net/developer/apps/

Tips

Twitter is the easiest service to configure and get running. Make sure you enter an oAuth Callback Url, even if you will override it in the application.

Facebook, Google, LinkedIn, and App.net require you to enter the domain from which you'll be accessing the services. http://localhost should work, but you may need to update your hosts file for Facebook.

LinkedIn requires SSL. This cannot be done on the Visual Studio Development Web Server. You will have to setup IIS with https and debug in IIS.

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.