Handle postLogoutRedirectUris as array (#2347)

This commit is contained in:
Maxime Besson 2020-12-28 15:10:35 +01:00
parent 6f25d43bdf
commit 82c696ea82

View File

@ -104,6 +104,9 @@ sub _translateValueConfToApi {
if ( $optionName eq "oidcRPMetaDataOptionsRedirectUris" ) {
return [ split( /\s+/, $optionValue, ) ];
}
elsif ( $optionName eq "oidcRPMetaDataOptionsPostLogoutRedirectUris" ) {
return [ split( /\s+/, $optionValue, ) ];
}
else {
return $optionValue;
}
@ -114,7 +117,12 @@ sub _translateValueApiToConf {
# redirectUris is handled as an array
if ( $optionName eq 'redirectUris' ) {
die "redirectUris is not an array"
die "redirectUris is not an array\n"
unless ( ref($optionValue) eq "ARRAY" );
return join( ' ', @{$optionValue} );
}
elsif ( $optionName eq 'postLogoutRedirectUris' ) {
die "postLogoutRedirectUris is not an array\n"
unless ( ref($optionValue) eq "ARRAY" );
return join( ' ', @{$optionValue} );
}