Giter VIP home page Giter VIP logo

angular-google-auth's Introduction

AngularJS Google login directive

Google (Plus) Login

Demo

http://jackrabbitsgroup.github.io/angular-google-auth/

Dependencies

  • required:
    • angular (tested with 1.2.0.rc3)
    • google gapi javascript

See bower.json and index.html in the gh-pages branch for a full list / more details

Install

  1. download the files
    1. Bower
      1. add "angular-google-auth": "latest" to your bower.json file then run bower install OR run bower install angular-google-auth
  2. include the files in your app
    1. google-auth.min.js
    2. google gapi javascript, i.e.:
    <script type="text/javascript">
      (function() {
       var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
       po.src = 'https://apis.google.com/js/client:plusone.js';
       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
     })();
    </script>
    
  3. include the module in angular (i.e. in app.js) - jackrabbitsgroup.angular-google-auth
  4. include your google client id for your app (and make sure you've enabled at least the Google+ API). See here https://cloud.google.com/console

See the gh-pages branch, files bower.json and index.html for a full example.

Documentation

See the google-auth.js file top comments for usage examples and documentation https://github.com/jackrabbitsgroup/angular-google-auth/blob/master/google-auth.js

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.