Verified Commit 563851cf authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(SupannFC) - removes objectclass FC

Adds supannPersonn as object class in order to remove
mandatory attributes.
Showing with 7 additions and 7 deletions
+7 -7
...@@ -33,7 +33,7 @@ class supannFC extends simplePlugin ...@@ -33,7 +33,7 @@ class supannFC extends simplePlugin
'plShortName' => _('France Connect'), 'plShortName' => _('France Connect'),
'plDescription' => _('France Connect identity'), 'plDescription' => _('France Connect identity'),
'plSelfModify' => TRUE, 'plSelfModify' => TRUE,
'plObjectClass' => ['supannFCPerson'], 'plObjectClass' => ['supannPerson'],
'plObjectType' => ['user'], 'plObjectType' => ['user'],
'plIcon' => 'geticon.php?context=applications&icon=supann&size=48', 'plIcon' => 'geticon.php?context=applications&icon=supann&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=supann&size=16', 'plSmallIcon' => 'geticon.php?context=applications&icon=supann&size=16',
...@@ -51,27 +51,27 @@ class supannFC extends simplePlugin ...@@ -51,27 +51,27 @@ class supannFC extends simplePlugin
'attrs' => [ 'attrs' => [
new StringAttribute( new StringAttribute(
_('Birth name'), _('Last name from birth'), _('Birth name'), _('Last name from birth'),
'supannNomDeNaissance', TRUE 'supannNomDeNaissance', FALSE
), ),
new StringAttribute( new StringAttribute(
_('First names'), _('Space separated first names'), _('First names'), _('Space separated first names'),
'supannPrenomsEtatCivil', TRUE 'supannPrenomsEtatCivil', FALSE
), ),
new DateAttribute( new DateAttribute(
_('Date of birth'), _('Date of birth'), _('Date of birth'), _('Date of birth'),
'supannOIDCDateDeNaissance', TRUE, 'supannOIDCDateDeNaissance', FALSE,
'Y-m-d', '', 'Y-m-d', '',
// min and max: // min and max:
NULL, 'now' NULL, 'now'
), ),
new SelectAttribute( new SelectAttribute(
_('Gender'), _('Gender'), _('Gender'), _('Gender'),
'supannOIDCGenre', TRUE, 'supannOIDCGenre', FALSE,
['other', 'female', 'male'], '', [_('Other'), _('Female'), _('Male')] ['other', 'female', 'male'], '', [_('Other'), _('Female'), _('Male')]
), ),
new StringAttribute( new StringAttribute(
_('Country of birth'), _('INSEE code of country of birth'), _('Country of birth'), _('INSEE code of country of birth'),
'supannCodeINSEEPaysDeNaissance', TRUE, 'supannCodeINSEEPaysDeNaissance', FALSE,
'', '',
'', '',
'/^\d{5}$/', '/^\d{5}$/',
...@@ -93,7 +93,7 @@ class supannFC extends simplePlugin ...@@ -93,7 +93,7 @@ class supannFC extends simplePlugin
new SetAttribute( new SetAttribute(
new StringAttribute( new StringAttribute(
_('Subject'), _('Subject from OpenID Connect standard in the France Connect system'), _('Subject'), _('Subject from OpenID Connect standard in the France Connect system'),
'supannFCSub', TRUE, 'supannFCSub', FALSE,
'', '',
'', '',
'/^[[:ascii:]]{1,255}$/' '/^[[:ascii:]]{1,255}$/'
......
Supports Markdown
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