Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #36 from dwyl/pass-api-keys-via-plugin-options-and…
Browse files Browse the repository at this point in the history
…-remove-prompt-for-future-access

Update to allow API Keys via Options
  • Loading branch information
iteles authored Jan 22, 2017
2 parents 62d5b07 + ad278ff commit 381fb7d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ your App(s) using their Google Account makes a lot of sense.
This plugin lets you easily integrate Google Authentication
into a Hapi-based Web Application / API.

### Key Advantages
### Key Advantages of _This_ Plugin:

+ It's _**a lot simpler**_ than "_Passport_" or "_Bell_"; you can read the code in a few minutes: [/lib/index.js](https://github.com/dwyl/hapi-auth-google/blob/master/lib/index.js)
+ _Uses_ **Google's Official Node.js module** and *nothing else*.
+ _**Much simpler**_ than "_Passport_" or "_Bell_"; you can read the code in a few minutes: [/lib/index.js](https://github.com/dwyl/hapi-auth-google/blob/master/lib/index.js)
+ **_Only_ One Dependency**: **Google's Official Node.js module** (_nothing else_)
+ _Complete_ **[step-by-step instructions](https://github.com/dwyl/hapi-auth-google/blob/master/GOOGLE-APP-STEP-BY-STEP-GUIDE.md), example && tests** to get you _**up and running in 5 mins**_.
+ Always **up-to-date** - we use this plugin in our/client projects
so we are quick to update it when required.
+ _**We're here to help**_ if you get stuck! [![Join the chat at https://gitter.im/dwyl/chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dwyl/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+ _**We're here to help**_ if you get stuck! [![Get Help!](https://img.shields.io/badge/get-help-brightgreen.svg?style=flat)](https://github.com/dwyl/hapi-auth-google/issues)


![OAuth2 workflow](https://cloud.githubusercontent.com/assets/194400/11186352/34dc4882-8c79-11e5-82ec-cba56deba484.png)
Expand All @@ -50,7 +50,7 @@ by visiting the google developer console:
https://console.developers.google.com

> If you are totally new to using the Google API,
we created
we created
[***GOOGLE-APP-STEP-BY-STEP-GUIDE***](https://github.com/dwyl/hapi-auth-google/blob/master/GOOGLE-APP-STEP-BY-STEP-GUIDE.md) *just* for you!
( *Note: if you still have any questions*, ***ask***! )

Expand Down
2 changes: 1 addition & 1 deletion example/google.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var opts = {
REDIRECT_URL: '/googleauth', // must match google app redirect URI
handler: require('./google_oauth_handler.js'), // your handler
access_type: 'offline', // options: offline, online
approval_prompt: 'always', // options: always, auto
approval_prompt: 'auto', // options: always, auto
scope: 'https://www.googleapis.com/auth/plus.profile.emails.read' // profile
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hapi-auth-google",
"version": "10.0.0",
"version": "16.0.0",
"description": "Easily allow people to login to your apps using their Google Account",
"main": "lib/index.js",
"directories": {
Expand Down Expand Up @@ -46,6 +46,6 @@
"tape": "^4.6.0"
},
"dependencies": {
"googleapis": "^12.2.0"
"googleapis": "^16.1.0"
}
}

0 comments on commit 381fb7d

Please sign in to comment.