lib/keycard/request/shibboleth_attributes.rb in keycard-0.3.0 vs lib/keycard/request/shibboleth_attributes.rb in keycard-0.3.1

- old
+ new

@@ -8,22 +8,21 @@ # by the IdP, and will commonly be an eduPersonPrincipalName. The only two # attributes guaranteed to have usable values are the client_ip, for all # requests, and the user_pid, for requests from authenticated users. class ShibbolethAttributes < Attributes def base # rubocop:disable Metrics/MethodLength - { - user_pid: user_pid, - user_eid: user_eid, - client_ip: client_ip, - persistentNameID: persistent_id, - eduPersonPrincipalName: principal_name, - eduPersonScopedAffiliation: affiliation, - displayName: display_name, - mail: email, - authnContextClassRef: authn_context, - authenticationMethod: authn_method, - identity_provider: identity_provider - } + super.merge( + { + persistentNameID: persistent_id, + eduPersonPrincipalName: principal_name, + eduPersonScopedAffiliation: affiliation, + displayName: display_name, + mail: email, + authnContextClassRef: authn_context, + authenticationMethod: authn_method, + identity_provider: identity_provider + } + ) end def user_pid persistent_id end