Skip to content

Commit

Permalink
Auth with custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Apr 26, 2024
1 parent 2f91204 commit db047d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/utils/oauth2/deviceauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// These are set with ldflags during build process
var Auth0ClientId = "XY4m3uRYoW6S0dK9ypXmM0Wc2bzUAdXW"
var Auth0URL = "https://production-v2-pinecone-io.us.auth0.com"
var Auth0URL = "https://login.pinecone.io"
var Auth0Audience = "https://us-central1-production-console.cloudfunctions.net/api/v1"

type DeviceAuth struct{}
Expand All @@ -21,7 +21,7 @@ func newOauth2Config() *oauth2.Config {
TokenURL: Auth0URL + "/oauth/token",
DeviceAuthURL: Auth0URL + "/oauth/device/code",
},
Scopes: []string{"email"},
Scopes: []string{"openid", "profile", "email"},
RedirectURL: "http://localhost:59049",
}
}
Expand Down

0 comments on commit db047d2

Please sign in to comment.