Commit ec1b9bc0 authored by Maxime Besson's avatar Maxime Besson

Add sameSite option to manager (#2379)

parent adbf6512
Pipeline #9950 passed with stage
in 3 minutes and 48 seconds
......@@ -2151,6 +2151,26 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
'remotePortal' => {
'type' => 'text'
},
'sameSite' => {
'select' => [ {
'k' => '',
'v' => 'Default'
},
{
'k' => 'Strict',
'v' => 'Strict'
},
{
'k' => 'Lax',
'v' => 'Lax'
},
{
'k' => 'None',
'v' => 'None'
}
],
'type' => 'select'
},
'samlAttributeAuthorityDescriptorAttributeServiceSOAP' => {
'default' =>
'urn:oasis:names:tc:SAML:2.0:bindings:SOAP;#PORTAL#/saml/AA/SOAP;',
......
......@@ -1068,6 +1068,17 @@ sub attributes {
vhostAliases => {
type => 'text',
},
sameSite => {
type => 'select',
select => [
{ k => '', v => 'Default' },
{ k => 'Strict', v => 'Strict' },
{ k => 'Lax', v => 'Lax' },
{ k => 'None', v => 'None' },
],
documentation => 'Cookie SameSite value',
flags => 'hp',
},
# CAS IDP
casAttr => { type => 'text', },
......
......@@ -503,7 +503,8 @@ sub tree {
nodes => [
'cookieName', '*domain',
'cda', 'securedCookie',
'httpOnly', 'cookieExpiration'
'httpOnly', 'cookieExpiration',
'sameSite',
]
},
{
......
......@@ -571,6 +571,7 @@
"returnUrl": "Return URL",
"rule": "Rule",
"rules": "Rules",
"sameSite":"Cookie SameSite value",
"save": "Save",
"saveReport": "Save report",
"savingConfirmation": "Saving confirmation",
......
......@@ -571,6 +571,7 @@
"returnUrl": "URL de retour",
"rule": "Règle",
"rules": "Règles",
"sameSite":"Valeur SameSite du cookie",
"save": "Sauver",
"saveReport": "Rapport de sauvegarde",
"savingConfirmation": "Confirmation de sauvegarde",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment