Handle postLogoutRedirectUris as array (#2347)
This commit is contained in:
parent
6f25d43bdf
commit
82c696ea82
|
@ -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} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user