Relax scope name constraints in manager (#2424)

This commit is contained in:
Maxime Besson 2021-03-29 15:28:17 +02:00
parent 20e1f9ded0
commit dca8483ec5
2 changed files with 3 additions and 2 deletions

View File

@ -2443,7 +2443,7 @@ m[^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
'default' => {},
'test' => {
'keyMsgFail' => '__badMacroName__',
'keyTest' => qr/^[_a-zA-Z][a-zA-Z0-9_]*$/,
'keyTest' => qr/^[\x21\x23-\x5B\x5D-\x7E]+$/,
'test' => sub {
return perlExpr(@_);
}

View File

@ -4338,7 +4338,8 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
type => 'keyTextContainer',
help => 'idpopenidconnect.html#scope-rules',
test => {
keyTest => qr/^[_a-zA-Z][a-zA-Z0-9_]*$/,
# RFC6749
keyTest => qr/^[\x21\x23-\x5B\x5D-\x7E]+$/,
keyMsgFail => '__badMacroName__',
test => sub { return perlExpr(@_) },
},