app/services/login/after_login_actions.rb
# Queries for a UserVerification on the user, based off the credential identifier
# If a UserVerification doesn't exist, create one and a UserAccount record associated
# with that UserVerification
Queries for a UserVerification on the user, based off the credential identifier
If a UserVerification doesn't exist, create one and a UserAccount record associated
with that UserVerification
Queries for a UserVerification on the user based off the credential identifier If a UserVerification doesn ' t exist create one and a UserAccount record associated with that UserVerification
def user_verification_create_or_update
      case login_type
      when SAML::User::MHV_MAPPED_CSID
        find_or_create_user_verification(:mhv_uuid, current_user.mhv_correlation_id)
      when SAML::User::IDME_CSID
        find_or_create_user_verification(:idme_uuid, current_user.idme_uuid)
      when SAML::User::DSLOGON_CSID
        find_or_create_user_verification(:dslogon_uuid, current_user.identity.edipi)
      when SAML::User::LOGINGOV_CSID
        find_or_create_user_verification(:logingov_uuid, current_user.logingov_uuid)
      else
        Rails.logger.info(
          "[AfterLoginActions] Unknown or missing login_type for user:#{current_user.uuid}, login_type:#{login_type}"
        )
      end
    rescue => e
      Rails.logger.info("[AfterLoginActions] UserVerification cannot be created, error=#{e.message}")
    end
def user_verification_create_or_update case login_type when SAML :: User :: MHV_MAPPED_CSID find_or_create_user_verification ( :mhv_uuid , current_user . mhv_correlation_id ) when SAML :: User :: IDME_CSID find_or_create_user_verification ( :idme_uuid , current_user . idme_uuid ) when SAML :: User :: DSLOGON_CSID find_or_create_user_verification ( :dslogon_uuid , current_user . identity . edipi ) when SAML :: User :: LOGINGOV_CSID find_or_create_user_verification ( :logingov_uuid , current_user . logingov_uuid ) else Rails . logger . info ( "[AfterLoginActions] Unknown or missing login_type for user:#{current_user.uuid}, login_type:#{login_type}" ) end rescue => e Rails . logger . info ( "[AfterLoginActions] UserVerification cannot be created, error=#{e.message}" ) end
Queries for a UserVerification on the user, based off the credential identifier
If a UserVerification doesn't exist, create one and a UserAccount record associated
with that UserVerification
Queries for a UserVerification on the user based off the credential identifier If a UserVerification doesn ' t exist create one and a UserAccount record associated with that UserVerification