Google (Plus) Login
http://jackrabbitsgroup.github.io/angular-google-auth/
- 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
- download the files
- Bower
- add
"angular-google-auth": "latest"
to yourbower.json
file then runbower install
OR runbower install angular-google-auth
- add
- Bower
- include the files in your app
google-auth.min.js
- 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>
- include the module in angular (i.e. in
app.js
) -jackrabbitsgroup.angular-google-auth
- 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.
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