[Feature] Use only NameID assertion to authenticate #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Hi!
We encountered a situation where an IP (Identity provider) does not provide SAML
Attributesas part of response, and unfortunately we cannot set those attributes in any way.As far as we know,
attributesare not a mandatory part for the SAML response protocol but, at the moment, jelix saml-module requires such attributes as mandatory for user creation/authentication on the jelix user DB.So, given the following assumptions:
we would propose this PR which allow to authenticate / create the jelix user using only the
NameIDPractical changes:
-if checked, the

SAML attribute containing the id/login of the userfield and all mandatory attributes will be disabled and filled with an arbitrary placeholder 'NameID'This interface management, although not very practical at the moment, serves to highlight to the user that the option is enabled.
As a result, when a user logs in for the first time, all required fields in the attributes section (marked as required by the jelix db provider) are filled with the
NameIDvalue. Obviously the value of the ǸameID could be formatted in various ways, so for example ifNameIDis of type username and email is a required field, the email field will be filled with a string that is not formatted as email.We are well aware that this type of configuration is situational, but it could make the module more flexible partly by placing responsibility on the system administrator.
Thank you!
@u-cav