Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris-B authored Feb 27, 2017
1 parent ba6888e commit 0e7be8f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Create and configure a new projet.

1) Open page: https://console.developers.google.com

2) Create a new project named **`nanogallery2gp_YOUR_INSTANCE_NAME`** (the project name should be unique, so replace **YOUR_INSTANCE_NAME** with the name of your own instance)
2) Create a new project named **`nanogallery2gp-YOUR-INSTANCE-NAME`** (the project name should be unique, so replace **YOUR-INSTANCE-NAME** with the name of your own instance)

<img src="img/google_api_console1.jpg?raw=true" alt="step 1" style="max-width:400px;"/>

Expand All @@ -49,7 +49,7 @@ Create and configure a new projet.

Select your email address

Define the "product nameshown to user": **"nanogallery2gp_YOUR_INSTANCE_NAME"**
Define the "product nameshown to user": **"nanogallery2gp-YOUR-INSTANCE-NAME"**

Others fields are optional

Expand All @@ -60,7 +60,7 @@ Others fields are optional
<img src="img/google_api_console4.jpg?raw=true" alt="step 4" style="max-width:400px;"/>

Application type: "Web application"
Name: **"nanogallery2gp_YOUR_INSTANCE_NAME"**
Name: **"nanogallery2gp-YOUR-INSTANCE-NAME"**

Define the authorized redirect URLs: enter the full path to your `autorize.php`

Expand All @@ -83,10 +83,11 @@ Use a browser to open the `authorize.php` page: `http://your_webserver/nanogp/au
The `admin` folder should only be accessible to your PHP applications.
For example, with `deny from all` set in `.htaccess` file.

## Manually revoke authorization
- delete the folder corresponding to the user in `admin/users`
- delete application's authorization: https://myaccount.google.com/permissions


## OAuth2
More about OAuth2: https://developers.google.com/identity/protocols/OAuth2WebServer

To manually revoke authorization:
- delete the folder corresponding to the user in `admin/users`
- delete application's authorization: https://myaccount.google.com/permissions

0 comments on commit 0e7be8f

Please sign in to comment.