Merge pull request #189 from donhcd/rootcertbundle
Rename auth.token.{rootCertBundle -> rootcertbundle}
This commit is contained in:
commit
00ce453315
@ -146,7 +146,7 @@ type tokenAccessOptions struct {
|
|||||||
func checkOptions(options map[string]interface{}) (tokenAccessOptions, error) {
|
func checkOptions(options map[string]interface{}) (tokenAccessOptions, error) {
|
||||||
var opts tokenAccessOptions
|
var opts tokenAccessOptions
|
||||||
|
|
||||||
keys := []string{"realm", "issuer", "service", "rootCertBundle"}
|
keys := []string{"realm", "issuer", "service", "rootcertbundle"}
|
||||||
vals := make([]string, 0, len(keys))
|
vals := make([]string, 0, len(keys))
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
val, ok := options[key].(string)
|
val, ok := options[key].(string)
|
||||||
|
@ -261,7 +261,7 @@ func TestAccessController(t *testing.T) {
|
|||||||
"realm": realm,
|
"realm": realm,
|
||||||
"issuer": issuer,
|
"issuer": issuer,
|
||||||
"service": service,
|
"service": service,
|
||||||
"rootCertBundle": rootCertBundleFilename,
|
"rootcertbundle": rootCertBundleFilename,
|
||||||
}
|
}
|
||||||
|
|
||||||
accessController, err := newAccessController(options)
|
accessController, err := newAccessController(options)
|
||||||
|
Loading…
Reference in New Issue
Block a user