Skip to content

Commit

Permalink
chore(cli): default to development auth0 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeodor committed Jun 11, 2024
1 parent 568beb7 commit 3102a30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ getarch = $(word 4,$(subst _, ,$(subst /, ,$@)))

GQL_HTTP_URL = https://api.numerous.com/query
GQL_WS_URL = wss://api.numerous.com/query
AUTH0_DOMAIN = numerous.eu.auth0.com
AUTH0_CLIENT_ID = h5U41HhtgJ5OXdIvzi2Aw7VNFQMoLzgF
LDFLAGS = -s -w \
-X "numerous/cli/internal/gql.httpURL=$(GQL_HTTP_URL)" \
-X "numerous/cli/internal/gql.wsURL=$(GQL_WS_URL)"
-X "numerous/cli/internal/gql.wsURL=$(GQL_WS_URL)" \
-X "numerous/auth.auth0Domain=$(AUTH0_DOMAIN)" \
-X "numerous/auth.auth0ClientID=$(AUTH0_CLIENT_ID)"


# Python SDK related variables
SDK_CLI_BINARY_DIR=python/src/numerous/cli/build
Expand Down
6 changes: 3 additions & 3 deletions cli/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
)

const (
numerousAuth0Domain string = "numerous.eu.auth0.com"
numerousAuth0ClientID string = "h5U41HhtgJ5OXdIvzi2Aw7VNFQMoLzgF"
auth0Domain string = "numerous-dev.eu.auth0.com"
auth0ClientID string = "fzPy9It2ERYZUi4AG5U0vmDSKC7oOxHe"
)

var NumerousTenantAuthenticator = NewTenantAuthenticator(numerousAuth0Domain, numerousAuth0ClientID)
var NumerousTenantAuthenticator = NewTenantAuthenticator(auth0Domain, auth0ClientID)

type Authenticator interface {
GetDeviceCode(ctx context.Context, client *http.Client) (DeviceCodeState, error)
Expand Down

0 comments on commit 3102a30

Please sign in to comment.