Skip to content

Commit

Permalink
Use and to connect two issuer names
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed May 14, 2024
1 parent cb5f3c8 commit ec4fd03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions xrootd/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func WriteOriginScitokensConfig(authedPaths []string) error {
if issuer, err := GenerateOriginIssuer(authedPaths); err == nil && len(issuer.Name) > 0 {
if val, ok := cfg.IssuerMap[issuer.Issuer]; ok {
val.BasePaths = append(val.BasePaths, issuer.BasePaths...)
val.Name += "; " + issuer.Name
val.Name += " and " + issuer.Name
cfg.IssuerMap[issuer.Issuer] = val
} else {
cfg.IssuerMap[issuer.Issuer] = issuer
Expand All @@ -574,7 +574,7 @@ func WriteOriginScitokensConfig(authedPaths []string) error {
if issuer, err := GenerateMonitoringIssuer(); err == nil && len(issuer.Name) > 0 {
if val, ok := cfg.IssuerMap[issuer.Issuer]; ok {
val.BasePaths = append(val.BasePaths, issuer.BasePaths...)
val.Name += "; " + issuer.Name
val.Name += " and " + issuer.Name
cfg.IssuerMap[issuer.Issuer] = val
} else {
cfg.IssuerMap[issuer.Issuer] = issuer
Expand All @@ -587,7 +587,7 @@ func WriteOriginScitokensConfig(authedPaths []string) error {
if issuer, err := GenerateDirectorMonitoringIssuer(); err == nil && len(issuer.Name) > 0 {
if val, ok := cfg.IssuerMap[issuer.Issuer]; ok {
val.BasePaths = append(val.BasePaths, issuer.BasePaths...)
val.Name += "; " + issuer.Name
val.Name += " and " + issuer.Name
cfg.IssuerMap[issuer.Issuer] = val
} else {
cfg.IssuerMap[issuer.Issuer] = issuer
Expand Down
2 changes: 1 addition & 1 deletion xrootd/resources/test-scitokens-monitoring.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ issuer = https://demo.scitokens.org
base_path = /foo, /bar
default_user = osg

[Issuer Origin; Built-in Monitoring]
[Issuer Origin and Built-in Monitoring]
issuer = https://origin.example.com:8444
base_path = /foo/bar, /pelican/monitoring

Expand Down

0 comments on commit ec4fd03

Please sign in to comment.