Skip to content
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

Proof of Concept: PIV upsell #10620

Closed
wants to merge 1 commit into from
Closed

Proof of Concept: PIV upsell #10620

wants to merge 1 commit into from

Conversation

jmdembe
Copy link
Contributor

@jmdembe jmdembe commented May 14, 2024

Steps to reproduce:

To skip the PIV upsell

  • Create an account. Use an agency that is not gsa.gov or army.mil to see how this would work if the email is not in a dataset.
  • Confirm account creation.
  • Create a password. After you create a password, you will be redirected to the authentication methods setup page.

To view the upsell

  • Create an account with an email using a gsa.gov or army.mil domain.
  • Confirm account creation
  • Create a password. On submit, you will see the PIV recommendation upsell.

@@ -37,6 +37,15 @@ def gov_or_mil?
email.end_with?('.gov', '.mil')
end

def fed_agency_issues_piv?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Include .mil domains in this definition

@jmdembe jmdembe changed the title poc changes Proof of Concept: PIV upsell May 14, 2024
@@ -37,6 +37,15 @@ def gov_or_mil?
email.end_with?('.gov', '.mil')
end

def fed_agency_issues_piv?
email_domain = get_email_domain
IdentityConfig.store.federal_agencies_with_piv.include?(email_domain)
Copy link
Member

Choose a reason for hiding this comment

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

As mentioned in the corresponding write-up, I think we may want to do this lookup from a database table rather than a configuration value, since there could be thousands of domains.

Similar to what we do with populating and looking up within the DisposableDomain table for disposable domains.

@jmdembe jmdembe closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants