Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9cea6ea
Avoid importing design system utilities into email CSS (#7224)
aduth Oct 26, 2022
42473aa
Removed IAL2_STRICT constant (#7220)
jmax-gsa Oct 26, 2022
7f7c118
LG-7876: Create CLI tool for generating in-person enrollment records …
NavaTim Oct 26, 2022
651240a
Remove selfie from Lexis Nexis (#7225)
theabrad Oct 26, 2022
591166b
Remove selfie and liveness check from mock doc_auth client (#7221)
jskinne3 Oct 26, 2022
21a7035
LG-7710 Remove Selfie React Code (#7113)
eric-gade Oct 26, 2022
6fc1fd3
Add sassc error message troubleshooting and make lint (#7227)
jskinne3 Oct 26, 2022
32ced86
LG-7810: Zero-pad SC ID numbers if < 8 digits (#7226)
solipet Oct 26, 2022
08b0a7c
LG-7914 IPP PO Search: ArcGIS API Auth Strategy change (#7223)
allthesignals Oct 26, 2022
9f2e3dc
Revert "LG-7606: generate key pairs and log how long it takes (#7043)…
aduth Oct 27, 2022
5fa807f
Add missing email CSS class (#7234)
aduth Oct 27, 2022
1b71195
Render language picker as collapsed by default in markup (#7236)
aduth Oct 27, 2022
bc82782
Stop distinuishing between liveness and no liveness general errors (#…
jmhooper Oct 27, 2022
8b55111
Lg 7752 new irs content (#7216)
jmax-gsa Oct 27, 2022
3b272cc
LG-7686: Update address line 2 label for IPP address form (#7237)
aduth Oct 27, 2022
1e442e2
LG-7718 ArcgisApi::Geocoder Cache API token (#7238)
allthesignals Oct 27, 2022
5925730
Fix the info-white.svg asset to actually be white (#7242)
jmhooper Oct 28, 2022
1ef3a16
Make sure that `selfie_image` and `liveness_checking_enabled` args ar…
jmhooper Oct 28, 2022
03b18ae
Remove the last few selfie references in the error generator (#7241)
jmhooper Oct 28, 2022
30a6fc8
Fully remove SP session during unconfirmed OIDC logout (#7232)
orenyk Oct 28, 2022
4348005
LG-7944 Return false from reproof_for_irs? if a user has never proofe…
jmhooper Oct 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ There was an initial attempt to dockerize the IDP but it is currently deprecated

If you'd like to work with the previous implementation see the [Docker documentation](./docs/Docker.md) to install the IdP as a container.

### Linting

Run `make lint`

### Troubleshooting
#### I am receiving errors when running `$ make setup`

Expand Down Expand Up @@ -274,3 +278,11 @@ Paste the following contents into the text editor:
Use Control+X to save the file.

Restart your Mac to cause the .plist to take effect. Check the limits again and you should see both `ulimit -n` and `launchctl limit maxfiles` return a limit of 524288.

##### Errors related to _sassc_

If you are getting the error:
```
LoadError: cannot load such file -- sassc
```
Try `make run` for a short time, then use Ctrl+C to kill it
1 change: 1 addition & 0 deletions app/assets/images/alert/info-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/components/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.usa-alert--info-important {
@include u-bg('accent-cool-darker');
color: color('white');

&::before {
background-image: url('alert/info-white.svg');
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/components/all.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'account-header';
@import 'alert-icon';
@import 'alert';
@import 'banner';
@import 'block-link';
@import 'btn';
Expand Down
96 changes: 95 additions & 1 deletion app/assets/stylesheets/email.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import 'variables/email';
@import 'foundation-emails/scss/foundation-emails';
@import 'identity-style-guide/dist/assets/scss/packages/required';
@import 'identity-style-guide/dist/assets/scss/packages/utilities';

.gray {
&:active,
Expand Down Expand Up @@ -156,3 +155,98 @@ h4 {
padding-top: units(0.5);
margin-right: units(1.5);
}

// Design system utility classes are duplicated here as a compromise to allow for consistent usage
// while avoiding performance cost of importing the full design system. Feel free to add as needed.

.border-1px {
@include u-border(1px);
}

.border-primary-light {
@include u-border('primary-light');
}

.display-inline-block {
@include u-display('inline-block');
}

.display-block {
@include u-display('block');
}

.font-heading-lg {
@include u-font('heading', 'lg');
}

.font-heading-md {
@include u-font('heading', 'md');
}

.font-sans-md {
@include u-font('sans', 'md');
}

.margin-bottom-0 {
@include u-margin-bottom(0);
}

.margin-bottom-1 {
@include u-margin-bottom(1);
}

.margin-bottom-105 {
@include u-margin-bottom(1.5);
}

.margin-bottom-2 {
@include u-margin-bottom(2);
}

.margin-bottom-4 {
@include u-margin-bottom(4);
}

.margin-top-0 {
@include u-margin-top(0);
}

.margin-top-5 {
@include u-margin-top(5);
}

.margin-y-105 {
@include u-margin-y(1.5);
}

.margin-y-4 {
@include u-margin-y(4);
}

.padding-4 {
@include u-padding(4);
}

.padding-bottom-4 {
@include u-padding-bottom(4);
}

.radius-lg {
@include u-radius('lg');
}

.text-bold {
@include u-text('bold');
}

.text-center {
@include u-text('center');
}

.usa-list {
@extend %usa-list;

li {
@extend %usa-list-item;
}
}
2 changes: 1 addition & 1 deletion app/components/barcode_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def barcode_caption_id
end

def css_class
[*tag_options[:class], 'display-inline-block margin-0']
[*tag_options[:class], 'display-inline-block']
end

private
Expand Down
1 change: 0 additions & 1 deletion app/components/key_pair_generator_component.html.erb

This file was deleted.

40 changes: 0 additions & 40 deletions app/components/key_pair_generator_component.js

This file was deleted.

11 changes: 0 additions & 11 deletions app/components/key_pair_generator_component.rb

This file was deleted.

15 changes: 10 additions & 5 deletions app/components/language_picker_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<%= content_tag(:div, **tag_options, class: css_class) do %>
<button
aria-controls="language-picker-<%= unique_id %>"
class="usa-accordion__button language-picker__label"
>
<%= content_tag(
:button,
class: 'usa-accordion__button language-picker__label',
aria: {
controls: "language-picker-#{unique_id}",
expanded: false,
},
) do %>
<%= image_tag(asset_url('globe-blue.svg'), width: 12, height: 12, alt: '', class: 'tablet:display-none') %>
<%= image_tag(asset_url('globe-white.svg'), width: 12, height: 12, alt: '', class: 'display-none tablet:display-inline') %>
<span id="language-picker-description-<%= unique_id %>">
<%= t('i18n.language') %>
</span>
</button>
<% end %>
<ul
id="language-picker-<%= unique_id %>"
aria-describedby="language-picker-description-<%= unique_id %>"
class="usa-accordion__content language-picker__list"
hidden
>
<% I18n.available_locales.each do |locale| %>
<li>
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/concerns/fully_authenticatable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module FullyAuthenticatable
def delete_branded_experience
def delete_branded_experience(logout: false)
ServiceProviderRequestProxy.delete(request_id)
session[:sp] = {} if logout
nil
end

def request_id
Expand Down
7 changes: 1 addition & 6 deletions app/controllers/concerns/idv_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ def confirm_idv_session_started
def confirm_idv_needed
return if effective_user.active_profile.blank? ||
decorated_session.requested_more_recent_verification? ||
effective_user.decorate.reproof_for_irs?(service_provider: current_sp) ||
strict_ial2_upgrade_required?
effective_user.decorate.reproof_for_irs?(service_provider: current_sp)

redirect_to idv_activated_url
end
Expand All @@ -24,10 +23,6 @@ def hybrid_session?
session[:doc_capture_user_id].present?
end

def strict_ial2_upgrade_required?
sp_session[:ial2_strict] && !effective_user.active_profile&.strict_ial2_proofed?
end

def confirm_idv_vendor_session_started
return if flash[:allow_confirmations_continue]
redirect_to idv_doc_auth_url unless idv_session.proofing_started?
Expand Down
6 changes: 1 addition & 5 deletions app/controllers/idv_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def index
if decorated_session.requested_more_recent_verification? ||
current_user.decorate.reproof_for_irs?(service_provider: current_sp)
verify_identity
elsif active_profile? && !strict_ial2_upgrade_required?
elsif active_profile?
redirect_to idv_activated_url
elsif idv_attempter_throttled?
irs_attempts_api_tracker.idv_verification_rate_limited
Expand Down Expand Up @@ -49,10 +49,6 @@ def profile_needs_reactivation?
redirect_to reactivate_account_url
end

def strict_ial2_upgrade_required?
sp_session[:ial2_strict] && !current_user.active_profile&.strict_ial2_proofed?
end

def active_profile?
current_user.active_profile.present?
end
Expand Down
3 changes: 3 additions & 0 deletions app/controllers/openid_connect/logout_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module OpenidConnect
class LogoutController < ApplicationController
include SecureHeadersConcern
include FullyAuthenticatable

before_action :apply_secure_headers_override, only: [:index, :delete]
before_action :confirm_two_factor_authenticated, only: [:delete]
Expand Down Expand Up @@ -62,6 +63,8 @@ def handle_successful_logout_request(result, redirect_uri)
}
@params[:state] = logout_params[:state] if !logout_params[:state].nil?
@service_provider_name = @logout_form.service_provider&.friendly_name
delete_branded_experience(logout: true)

render :index
else
analytics.logout_initiated(**result.to_h.except(:redirect_uri))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ def index
@sp_name = sp_from_sp_session&.friendly_name ||
I18n.t('service_providers.errors.generic_sp_name')

delete_branded_experience
session[:sp] = {}
delete_branded_experience(logout: true)
end
end
end
5 changes: 3 additions & 2 deletions app/decorators/user_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ def identity_verified?(service_provider: nil)
end

def reproof_for_irs?(service_provider:)
service_provider&.irs_attempts_api_enabled &&
!user.active_profile&.initiating_service_provider&.irs_attempts_api_enabled
return false unless user.active_profile.present?
return false unless service_provider&.irs_attempts_api_enabled
!user.active_profile.initiating_service_provider&.irs_attempts_api_enabled
end

def active_profile_newer_than_pending_profile?
Expand Down
2 changes: 0 additions & 2 deletions app/forms/idv/api_image_upload_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def post_images_to_client
response = doc_auth_client.post_images(
front_image: front.read,
back_image: back.read,
selfie_image: nil,
liveness_checking_enabled: false,
image_source: image_source,
user_uuid: user_uuid,
uuid_prefix: uuid_prefix,
Expand Down
1 change: 0 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def ial2_requested?

def liveness_checking_enabled?
return false if !FeatureManagement.liveness_checking_enabled?
return sp_session[:ial2_strict] if sp_session.key?(:ial2_strict)
!!current_user&.decorate&.password_reset_profile&.strict_ial2_proofed?
end

Expand Down
Loading