credential/github: case insensitive mappings

This commit is contained in:
Mitchell Hashimoto
2015-05-11 10:24:39 -07:00
parent a732fce7e2
commit 5d1baaace4
3 changed files with 21 additions and 11 deletions

View File

@@ -16,7 +16,10 @@ func Factory(map[string]string) (logical.Backend, error) {
func Backend() *framework.Backend {
var b backend
b.Map = &framework.PolicyMap{
PathMap: framework.PathMap{Name: "teams"},
PathMap: framework.PathMap{
Name: "teams",
CaseInsensitive: true,
},
DefaultKey: "default",
}
b.Backend = &framework.Backend{