Skip to content

Commit

Permalink
update with idp defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmdarroch committed Aug 29, 2022
1 parent 86e38f3 commit d414160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
defaultAuthURL = "https://auth.idp.hashicorp.com"

// defaultOAuth2ClientID is the client ID of the production auth application.
defaultOAuth2ClientID = "FdZDrkFj8z7LNQBq5sk3K377sgoSKslV"
defaultOAuth2ClientID = "21d86262-6f14-4a30-a90f-07e3fde8b23d"

// defaultPortalURL is the URL of the production portal.
defaultPortalURL = "https://portal.cloud.hashicorp.com"
Expand Down Expand Up @@ -67,8 +67,8 @@ func NewHCPConfig(opts ...HCPConfigOption) (HCPConfig, error) {
oauth2Config: oauth2.Config{
ClientID: defaultOAuth2ClientID,
Endpoint: oauth2.Endpoint{
AuthURL: defaultAuthURL + "/authorize",
TokenURL: defaultAuthURL + "/oauth/token",
AuthURL: defaultAuthURL + "/oauth2/auth",
TokenURL: defaultAuthURL + "/oauth2/token",
},
RedirectURL: "http://localhost:8443/oidc/callback",
Scopes: []string{"openid", "offline_access"},
Expand Down

0 comments on commit d414160

Please sign in to comment.