Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-rliu committed Apr 9, 2024
1 parent 7680b61 commit 302588d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyteadmin/auth/auth_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
)

var (
callbackRelativeURL = config.MustParseURL("callback")
callbackRelativeURL = config.MustParseURL("/callback")
rootRelativeURL = config.MustParseURL("/")
)

Expand Down Expand Up @@ -62,7 +62,7 @@ func (c Context) OAuth2ClientConfig(requestURL *url.URL) *oauth2.Config {
}

return &oauth2.Config{
RedirectURL: requestURL.ResolveReference(callbackRelativeURL).String(),
RedirectURL: callbackRelativeURL.String(),
ClientID: c.oauth2Client.ClientID,
ClientSecret: c.oauth2Client.ClientSecret,
Scopes: c.oauth2Client.Scopes,
Expand Down

0 comments on commit 302588d

Please sign in to comment.