forked from raystack/compass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove unused variable and documentation
- Loading branch information
Muhammad Luthfi Fahlevi
committed
Nov 15, 2024
1 parent
a5ac246
commit 38ce71b
Showing
4 changed files
with
2 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,6 @@ service: | |
host: localhost #required | ||
port: 8080 #required | ||
identity: | ||
headerkey_uuid: Compass-User-UUID #required | ||
headerkey_email: Compass-User-Email #optional | ||
provider_default_name: shield #optional | ||
grpc: | ||
|
@@ -76,7 +75,6 @@ DB_PASSWORD=compass_password | |
DB_SSLMODE=disable | ||
SERVICE_HOST=localhost | ||
SERVICE_PORT=8080 | ||
SERVICE_IDENTITY_HEADERKEY_UUID=Compass-User-UUID | ||
SERVICE_IDENTITY_HEADERKEY_EMAIL=Compass-User-Email | ||
SERVICE_IDENTITY_PROVIDER_DEFAULT_NAME=shield | ||
SERVICE_GRPC_PORT=8081 | ||
|
@@ -262,8 +260,8 @@ Add client configurations in the same `~/compass.yaml` file in root of current d | |
```yml | ||
client: | ||
host: localhost:8081 | ||
serverheaderkey_uuid: Compass-User-UUID | ||
serverheadervalue_uuid: [email protected] | ||
serverheaderkey_email: Compass-User-Email | ||
serverheadervalue_email: [email protected] | ||
``` | ||
#### Required Header/Metadata in API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,8 +47,6 @@ func (cfg Config) grpcAddr() string { return fmt.Sprintf("%s:%d", cfg.Host, cfg. | |
|
||
type IdentityConfig struct { | ||
// User Identity | ||
HeaderKeyUUID string `yaml:"headerkey_uuid" mapstructure:"headerkey_uuid" default:"Compass-User-UUID"` | ||
HeaderValueUUID string `yaml:"headervalue_uuid" mapstructure:"headervalue_uuid" default:"[email protected]"` | ||
HeaderKeyEmail string `yaml:"headerkey_email" mapstructure:"headerkey_email" default:"Compass-User-Email"` | ||
HeaderValueEmail string `yaml:"headervalue_email" mapstructure:"headervalue_email" default:"[email protected]"` | ||
ProviderDefaultName string `yaml:"provider_default_name" mapstructure:"provider_default_name" default:""` | ||
|
@@ -178,8 +176,6 @@ func makeHeaderMatcher(c Config) func(key string) (string, bool) { | |
switch strings.ToLower(key) { | ||
case strings.ToLower(c.Identity.HeaderKeyEmail): | ||
return key, true | ||
case strings.ToLower(c.Identity.HeaderKeyUUID): | ||
return key, true | ||
default: | ||
return runtime.DefaultHeaderMatcher(key) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters