Skip to content

Commit

Permalink
getting host from "host" environment key
Browse files Browse the repository at this point in the history
  • Loading branch information
leocwolter committed Jun 20, 2014
1 parent b0f030c commit 3c98acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/mamute/auth/OAuthServiceCreator.java
Expand Up @@ -45,7 +45,7 @@ public OAuthService getInstanceFacebook() {
.provider(FacebookApi.class)
.apiKey(env.get(FACEBOOK_CLIENT_ID))
.apiSecret(env.get(FACEBOOK_APP_SECRET))
.callback(env.get(FACEBOOK_REDIRECT_URI))
.callback(env.get("host")+env.get(FACEBOOK_REDIRECT_URI))
.build();
return service;
}
Expand All @@ -57,7 +57,7 @@ public OAuthService getInstanceGoogle() {
.provider(Google2Api.class)
.apiKey(env.get(GOOGLE_CLIENT_ID))
.apiSecret(env.get(GOOGLE_CLIENT_SECRET))
.callback(env.get(GOOGLE_REDIRECT_URI))
.callback(env.get("host")+env.get(GOOGLE_REDIRECT_URI))
.scope("https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email")
.build();
return service;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/mamute.properties
Expand Up @@ -18,11 +18,11 @@ tags.splitter.char = ,

# Facebook Dev Settings
facebook.app_id=your_fb_app_id
facebook.redirect_uri=http://localhost:8080/sign-up/facebook/
facebook.redirect_uri=/sign-up/facebook/
facebook.app_secret=your_fb_app_secret

google.client_id=your_googleplus_client_id
google.redirect_uri=http://localhost:8080/sign-up/google
google.redirect_uri=/sign-up/google
google.client_secret=your_googleplus_client_secret

# URL Domain.
Expand Down

0 comments on commit 3c98acb

Please sign in to comment.