-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Provider and UsernameLower #4
Conversation
@madsi1m maybe those tests can be done solely by using the builtin functions available in this library: http://masterminds.github.io/sprig/ The template will support any of the functions available in that library and I'm sure the lib contains functions to split strings and also to lower case a string |
Wow so much choice in sprig, love it. I guess for |
@madsi1m One questions before merging: the Provider comes from the User struct in the UserId.IdP fields, which is usually the Provider (cern.ch/auth/realm) for example. Your use case is that the "username" is given like "peter@university.com" right? |
@labkode in our case the idp is actually our simplesamlphp instance and our usernames are emails. |
@madsi1m so as you deal with emails as usernames, then I propose you the following: A mail like peter@example.org consists of:
Can you add a new Email field to the struct:
|
@labkode good idea, committed |
No description provided.