openID read-me

This commit is contained in:
DOHA 2016-03-03 12:47:03 +02:00
parent efa87d8bce
commit e64bf9b7bd
2 changed files with 19 additions and 2 deletions

17
spring-openid/README.md Normal file
View File

@ -0,0 +1,17 @@
=========
## OpenID Connect with Spring Security
### Build the Project
```
mvn clean install
```
### Obtain Google app Client ID, Secret
- You need to get client id and client secret from [Google Developer Console](https://console.developers.google.com/project/_/apiui/credential?pli=1)
- Make sure to add OAuth2 credentials by selecting Add credentials > OAuth 2.0 client ID
- Make sure you set redirect URI to http://localhost:8081/google-login

View File

@ -1,6 +1,6 @@
server.port=8081
google.clientId=497324626536-d6fphsh1qpl2o6j2j66nukajrfqc0rtq.apps.googleusercontent.com
google.clientSecret=vtueZycMsrRjjCjnY6JzbEZT
google.clientId=TODO
google.clientSecret=TODO
google.accessTokenUri=https://www.googleapis.com/oauth2/v3/token
google.userAuthorizationUri=https://accounts.google.com/o/oauth2/auth
google.redirectUri=http://localhost:8081/google-login