Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 0d1cc1d

Browse files
Fixes for L5
Signed-off-by: Anand Swaminathan <aswaminathan@lyft.com>
1 parent d65105c commit 0d1cc1d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/auth/auth_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func GetL5Oauth2Config(mainConfig *oauth2.Config) oauth2.Config {
196196
RedirectURL: "https://flyte-rs.av.lyft.net/callback",
197197
ClientID: mainConfig.ClientID,
198198
ClientSecret: mainConfig.ClientSecret,
199-
Scopes: []string{OidcScope, OfflineAccessType, ProfileScope},
199+
Scopes: mainConfig.Scopes,
200200
Endpoint: oauth2.Endpoint{
201201
AuthURL: mainConfig.Endpoint.AuthURL,
202202
TokenURL: mainConfig.Endpoint.TokenURL,

pkg/auth/handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/lyft/flytestdlib/contextutils"
1919
"github.com/lyft/flytestdlib/errors"
2020
"github.com/lyft/flytestdlib/logger"
21+
"golang.org/x/oauth2"
2122
"google.golang.org/grpc"
2223
"google.golang.org/grpc/codes"
2324
"google.golang.org/grpc/metadata"

0 commit comments

Comments
 (0)