Manage values for samlIDPMetaDataOptionsSLOBinding (#1046)

This commit is contained in:
Clément Oudot 2016-06-21 12:40:43 +00:00
parent fcaa2f4dbc
commit 35eb674b33
6 changed files with 70 additions and 5 deletions

View File

@ -255,6 +255,7 @@ sub defaultValues {
'samlIDPMetaDataOptionsRequestedAuthnContext' => '',
'samlIDPMetaDataOptionsSignSLOMessage' => -1,
'samlIDPMetaDataOptionsSignSSOMessage' => -1,
'samlIDPMetaDataOptionsSLOBinding' => '',
'samlIDPMetaDataOptionsSSOBinding' => '',
'samlIdPResolveCookie' => 'lemonldapidp',
'samlIDPSSODescriptorArtifactResolutionServiceArtifact' =>

View File

@ -2213,7 +2213,34 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
'type' => 'trool'
},
'samlIDPMetaDataOptionsSLOBinding' => {
'type' => 'text'
'default' => '',
'select' => [
{
'k' => '',
'v' => ''
},
{
'k' => 'http-post',
'v' => 'POST'
},
{
'k' => 'http-redirect',
'v' => 'Redirect'
},
{
'k' => 'http-soap',
'v' => 'SOAP'
},
{
'k' => 'artifact-get',
'v' => 'Artifact GET'
},
{
'k' => 'artifact-post',
'v' => 'Artifact POST'
}
],
'type' => 'select'
},
'samlIDPMetaDataOptionsSSOBinding' => {
'default' => '',

View File

@ -1488,7 +1488,16 @@ sub attributes {
default => '',
},
samlIDPMetaDataOptionsSLOBinding => {
type => 'text',
type => 'select',
select => [
{ k => '', v => '' },
{ k => 'http-post', v => 'POST' },
{ k => 'http-redirect', v => 'Redirect' },
{ k => 'http-soap', v => 'SOAP' },
{ k => 'artifact-get', v => 'Artifact GET' },
{ k => 'artifact-post', v => 'Artifact POST' },
],
default => '',
},
samlIDPMetaDataOptionsEncryptionMode => {
type => 'select',

View File

@ -571,9 +571,37 @@ function templates(tpl,key) {
"type" : "select"
},
{
"default" : "",
"get" : tpl+"s/"+key+"/"+"samlIDPMetaDataOptionsSLOBinding",
"id" : tpl+"s/"+key+"/"+"samlIDPMetaDataOptionsSLOBinding",
"title" : "samlIDPMetaDataOptionsSLOBinding"
"select" : [
{
"k" : "",
"v" : ""
},
{
"k" : "http-post",
"v" : "POST"
},
{
"k" : "http-redirect",
"v" : "Redirect"
},
{
"k" : "http-soap",
"v" : "SOAP"
},
{
"k" : "artifact-get",
"v" : "Artifact GET"
},
{
"k" : "artifact-post",
"v" : "Artifact POST"
}
],
"title" : "samlIDPMetaDataOptionsSLOBinding",
"type" : "select"
}
],
"id" : "samlIDPMetaDataOptionsBinding",

File diff suppressed because one or more lines are too long

View File

@ -1277,7 +1277,7 @@ sub authLogout {
$method =
$self->{samlIDPMetaDataOptions}->{$idpConfKey}
->{samlIDPMetaDataOptionsSLOBinding};
$method = $self->getHttpMethod($method) if $method;
$method = $self->getHttpMethod($method);
# If no method defined, get first HTTP method
unless ( defined $method ) {