Class: OmniAuth::Strategies::Aai

Inherits:
Shibboleth
  • Object
show all
Defined in:
lib/omniauth/strategies/aai.rb

Constant Summary collapse

CORE_ATTRIBUTES =

8 core attributes available for all users

{
  unique_id:                "uniqueID",
  persistent_id:            "persistent-id",
  email:                    "mail",
  first_name:               "givenName",
  last_name:                "surname",
  home_organization:        "homeOrganization",
  home_organization_type:   "homeOrganizationType",
  affiliation:              "affiliation"
}
SHIBBOLETH_ATTRIBUTES =

8 or more Shibboleth attributes, set by the Service Provider automatically for users with a valid session

{
  entitlement: 'entitlement',
  preferredLanguage: 'preferredLanguage'
  #   :'Shib-Application-ID' => [],
  #   :'Shib-Assertion-01' => [],
  #   :'Shib-Assertion-Count' => [],
  #   :'Shib-Authentication-Instant' => [],
  #   :'Shib-Authentication-Method' => [],
  #   :'Shib-AuthnContext-Class' => [],
  #   :'Shib-Identity-Provider' => [],
  #   :'Shib-Session-ID' => []
}
DEFAULT_EXTRA_FIELDS =

DEFAULT_FIELDS = [:name, :email, :persistent_id, :unique_id]

(SHIBBOLETH_ATTRIBUTES.keys)

Instance Method Summary collapse

Instance Method Details

#request_phaseObject



49
50
51
52
53
54
55
56
57
58
# File 'lib/omniauth/strategies/aai.rb', line 49

def request_phase
  [
    302,
    {
      'Location' => script_name + callback_path + query_string,
      'Content-Type' => 'text/plain'
    },
    ["You are being redirected to your SWITCHaai IdP for sign-in."]
  ]
end