[Feature] Use only NameID assertion to authenticate#23
[Feature] Use only NameID assertion to authenticate#23mind84 wants to merge 2 commits intojelix:masterfrom
Conversation
|
Hi, Sorry for the delay. And thank you for this PR. Quick review:
I don't know yet how to resolve it. I will review details of your PR and think about solutions. (I can improve your PR if you don't have time to do it) |
|
Hi @laurentj,
Okay, that's good to know for future PRs. I see you've already updated the repo, though, so thanks.
Ok
The key point of this PR is on the provider's side. If the provider provides only one piece of information, and it's not the email address, there are two possible scenarios: use that information (and leave the administrator responsible for managing the installation) or block access entirely. Regarding the mandatory email field, although there is no universally valid solution, we can suggest some actions that the system administrator can take to overcome this problem:
Feel absolutely free to make changes to this PR We are of course open to discuss other solutions Thank you! |

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