mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-19 09:38:03 +02:00
google: support provider URL (#2567)
* google: support provider URL * change google default options
This commit is contained in:
parent
3ee0c36c49
commit
823b430d60
1 changed files with 7 additions and 1 deletions
|
@ -116,7 +116,13 @@ func GetProvider(options Options) (provider Provider) {
|
|||
case google.Name:
|
||||
serviceAccount, err := google.ParseServiceAccount(options.ServiceAccount)
|
||||
if err == nil {
|
||||
return google.New(google.WithServiceAccount(serviceAccount))
|
||||
googleOptions := []google.Option{
|
||||
google.WithServiceAccount(serviceAccount),
|
||||
}
|
||||
if options.ProviderURL != "" {
|
||||
googleOptions = append(googleOptions, google.WithURL(options.ProviderURL))
|
||||
}
|
||||
return google.New(googleOptions...)
|
||||
}
|
||||
log.Warn(ctx).
|
||||
Str("service", "directory").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue