From e64bf9b7bd551da45755044b2ad5e591a3e3c93c Mon Sep 17 00:00:00 2001 From: DOHA Date: Thu, 3 Mar 2016 12:47:03 +0200 Subject: [PATCH] openID read-me --- spring-openid/README.md | 17 +++++++++++++++++ .../src/main/resources/application.properties | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 spring-openid/README.md diff --git a/spring-openid/README.md b/spring-openid/README.md new file mode 100644 index 0000000000..59f6054934 --- /dev/null +++ b/spring-openid/README.md @@ -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 + + diff --git a/spring-openid/src/main/resources/application.properties b/spring-openid/src/main/resources/application.properties index fa567a164c..3b4f7716f0 100644 --- a/spring-openid/src/main/resources/application.properties +++ b/spring-openid/src/main/resources/application.properties @@ -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 \ No newline at end of file