Skip to content

[feature] Added view to collect email in SAML registration#557

Merged
nemesifier merged 3 commits intomasterfrom
saml-intermediate-view
Nov 19, 2024
Merged

[feature] Added view to collect email in SAML registration#557
nemesifier merged 3 commits intomasterfrom
saml-intermediate-view

Conversation

@pandafy
Copy link
Member

@pandafy pandafy commented Oct 25, 2024

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Reference to Existing Issue

Description of Changes

If the IdP does not include email address in SAML response, then the user will be asked for email during sign-up.

@pandafy pandafy force-pushed the saml-intermediate-view branch 4 times, most recently from d5426db to cbaef31 Compare October 25, 2024 16:57
@coveralls
Copy link

coveralls commented Oct 25, 2024

Coverage Status

coverage: 98.645% (-0.01%) from 98.657%
when pulling 06b7d07 on saml-intermediate-view
into 23331a4 on master.

@pandafy pandafy force-pushed the saml-intermediate-view branch 4 times, most recently from 4a7897f to 6f84147 Compare November 4, 2024 15:03
If the IdP does not include email address in SAML response,
then the user will be asked for email during sign-up.
@pandafy pandafy force-pushed the saml-intermediate-view branch from 6f84147 to 3d3b7a5 Compare November 4, 2024 15:15
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good except the naming, see my comment below and let me know what you think.

@nemesifier nemesifier added the enhancement New feature or request label Nov 19, 2024
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the fur translation missing?

#: templates/djangosaml2/login_additional_info.html:6
msgid ""
"It looks like we didn't receive your email from your identity provider.</"
"br>Please enter your email address below to complete setting up your account."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the <br> tag here and in the other translation files intentional and correct? I don't remember we use HTML tags in the translations here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try splitting the string in two different paragraphs.

This old StackOverflow post says that it's okay to have HTML tag in the string.

@nemesifier nemesifier merged commit f35da16 into master Nov 19, 2024
@nemesifier nemesifier deleted the saml-intermediate-view branch November 19, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants