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