Skip to content

Commit 45df029

Browse files
Merge pull request #89 from dataswift/fix-gcalendar
Changed some env variables to match what is expected by google
2 parents ee49443 + ec7ddf9 commit 45df029

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

dataplug-gcalendar/conf/application.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ play.mailer {
2727
from = ${?MAILER_FROM}
2828
}
2929

30-
auth.allowedResources = ["https://gcalendar.dataswift.io", "https://gcalendar.dataswift.dev", "https://gcalendar.hubofallthings.net", "http://dataplug.hat.org", "https://gcalendar.hubat.net"]
30+
auth.allowedResources = ["https://google-calendar.dataswift.io", "https://google-calendar.dataswift.dev", "https://google-calendar.hubofallthings.net", "https://dataplug.hat.org:9443", "https://google-calendar.hubat.net"]
3131

3232
hat.secure = true
3333

3434
service {
35-
name = "gcalendar"
35+
name = "google-calendar"
3636
name = ${?TOKEN_APP_NAME}
3737
provider = "google"
3838
scheme = "https://"
39-
address = "gcalendar.dataswift.io"
39+
address = "google-calendar.hubofallthings.com"
4040
secure = true
4141
chooseVariants = false
4242
hatCredentials {

dataplug-gcalendar/conf/application.dev.conf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
include "application.conf"
44

5-
service.scheme = "http://"
6-
service.address = "dataplug.hat.org:9000"
7-
service.secure = false
8-
service.name = "gcalendar-dev"
5+
service.scheme = "https://"
6+
service.address = "dataplug.hat.org:9443"
7+
service.secure = true
8+
service.name = "google-calendar-dev"
99
service.name = ${?TOKEN_APP_NAME}
1010

11-
1211
play.mailer.mock = true

dataplug-gcalendar/conf/application.test.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ silhouette {
5151
google {
5252
authorizationURL = "https://accounts.google.com/o/oauth2/auth"
5353
accessTokenURL = "https://accounts.google.com/o/oauth2/token"
54-
redirectURL = "http://dataplug.hat.org:9000/authenticate/google"
54+
redirectURL = "https://dataplug.hat.org:9443/authenticate/google"
5555
refreshURL = "https://www.googleapis.com/oauth2/v4/token"
5656
clientID = "783885139147-saq7s5fidvu1kj362mf334ef69sqk90l.apps.googleusercontent.com"
5757
clientID = ${?GOOGLE_CLIENT_ID}

dataplug-gcalendar/conf/silhouette.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ silhouette {
4141
# Google provider
4242
google.authorizationURL = "https://accounts.google.com/o/oauth2/auth"
4343
google.accessTokenURL = "https://accounts.google.com/o/oauth2/token"
44-
google.redirectURL = "http://dataplug.hat.org:9000/authenticate/gcalendar"
44+
google.redirectURL = "https://dataplug.hat.org:9443/authenticate/google"
4545
google.redirectURL = ${?GOOGLE_CALLBACK_URL}
4646
google.redirectURL = ${?API_CALLBACK_URL}
4747
google.refreshURL = "https://www.googleapis.com/oauth2/v4/token"

0 commit comments

Comments
 (0)