Skip to content

Commit

Permalink
Merge pull request #618 from kinvolk/gh_management_url
Browse files Browse the repository at this point in the history
backend: Add management url to config
  • Loading branch information
joaquimrocha authored Aug 25, 2022
2 parents ffa7d16 + 83f8a59 commit 5b07da9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/pkg/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func New(db *api.API, conf *config.Config, auth auth.Authenticator) (*Handler, e
clientConfig.Logo = string(svg)
}

if conf.AuthMode == "github" {
clientConfig.AccessManagementUrl = "https://github.com/settings/connections/applications/" + conf.GhClientID
}

if conf.AuthMode == "oidc" {
url, err := url.Parse(conf.NebraskaURL)
if err != nil {
Expand Down

0 comments on commit 5b07da9

Please sign in to comment.