Skip to content

Commit

Permalink
Merge pull request #3804 from kenshiro-o/add_gce_pubsub_auth_endpoint
Browse files Browse the repository at this point in the history
providers/google: add pubsub auth endpoint
  • Loading branch information
sparkprime committed Nov 10, 2015
2 parents 4eea011 + ad1c289 commit 0d69159
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builtin/providers/google/service_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func canonicalizeServiceScope(scope string) string {
"datastore": "https://www.googleapis.com/auth/datastore",
"logging-write": "https://www.googleapis.com/auth/logging.write",
"monitoring": "https://www.googleapis.com/auth/monitoring",
"pubsub": "https://www.googleapis.com/auth/pubsub",
"sql": "https://www.googleapis.com/auth/sqlservice",
"sql-admin": "https://www.googleapis.com/auth/sqlservice.admin",
"storage-full": "https://www.googleapis.com/auth/devstorage.full_control",
Expand All @@ -22,9 +23,9 @@ func canonicalizeServiceScope(scope string) string {
"userinfo-email": "https://www.googleapis.com/auth/userinfo.email",
}

if matchedUrl, ok := scopeMap[scope]; ok {
return matchedUrl
} else {
return scope
if matchedURL, ok := scopeMap[scope]; ok {
return matchedURL
}

return scope
}

0 comments on commit 0d69159

Please sign in to comment.