Update 'README.md'
This commit is contained in:
parent
c36c0200f3
commit
6a22bfecc4
|
@ -12,7 +12,7 @@ OAuth2 / JWT / OpenID Connect for mocking auth... which isn't that different fro
|
||||||
|
|
||||||
Add your test domain
|
Add your test domain
|
||||||
|
|
||||||
0. Go back to https://console.developers.google.com/apis/dashboard
|
1. Go back to https://console.developers.google.com/apis/dashboard
|
||||||
1. Select your new project from the upper-left drop-down
|
1. Select your new project from the upper-left drop-down
|
||||||
2. Select `Domain Verification` from the left hand side of the screen
|
2. Select `Domain Verification` from the left hand side of the screen
|
||||||
3. Add your test domain (i.e. `beta.example.com`), but a domain that you actually own
|
3. Add your test domain (i.e. `beta.example.com`), but a domain that you actually own
|
||||||
|
@ -22,14 +22,14 @@ Add your test domain
|
||||||
|
|
||||||
Enable OAuth2
|
Enable OAuth2
|
||||||
|
|
||||||
0. Go back to https://console.developers.google.com/apis/dashboard
|
1. Go back to https://console.developers.google.com/apis/dashboard
|
||||||
1. Select `OAuth consent screen`
|
1. Select `OAuth consent screen`
|
||||||
2. Select `External`
|
2. Select `External`
|
||||||
3. Complete the consent screen form
|
3. Complete the consent screen form
|
||||||
|
|
||||||
Create Google Credentials
|
Create Google Credentials
|
||||||
|
|
||||||
0. Go back to https://console.developers.google.com/apis/dashboard
|
1. Go back to https://console.developers.google.com/apis/dashboard
|
||||||
1. Select `Credentials` from the left sidebar
|
1. Select `Credentials` from the left sidebar
|
||||||
2. Select `OAuth ID`
|
2. Select `OAuth ID`
|
||||||
3. Select `Web Application`
|
3. Select `Web Application`
|
||||||
|
@ -52,7 +52,7 @@ Update your signin page.
|
||||||
```html
|
```html
|
||||||
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
||||||
```
|
```
|
||||||
3. You can start off with the Google's sign in button, but you need your own `data-onsuccess` callback. You can also adjust the `data-scope` per button to include more stuff.
|
3. You can start off with the Google's sign in button, but you need your own `data-onsuccess` callback. You can also adjust the `data-scope` per button to include more stuff. Scopes are defined at https://developers.google.com/identity/protocols/oauth2/scopes
|
||||||
```html
|
```html
|
||||||
<div
|
<div
|
||||||
class="g-signin2"
|
class="g-signin2"
|
||||||
|
|
Loading…
Reference in New Issue