Class: OmniAuth::Strategies::Crowd::CrowdValidator
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::Crowd::CrowdValidator
- Defined in:
- lib/omniauth/strategies/crowd/crowd_validator.rb
Constant Summary collapse
- AUTHENTICATION_REQUEST_BODY =
"<password><value>%s</value></password>"
Instance Method Summary collapse
-
#initialize(configuration, username, password, client_ip, tokens) ⇒ CrowdValidator
constructor
A new instance of CrowdValidator.
- #user_info ⇒ Object
Constructor Details
#initialize(configuration, username, password, client_ip, tokens) ⇒ CrowdValidator
Returns a new instance of CrowdValidator.
10 11 12 13 14 |
# File 'lib/omniauth/strategies/crowd/crowd_validator.rb', line 10 def initialize(configuration, username, password, client_ip, tokens) @configuration, @username, @password, @client_ip, @tokens = configuration, username, password, client_ip, tokens @authentiction_uri = URI.parse(@configuration.authentication_url(@username)) @session_uri = URI.parse(@configuration.session_url) if @configuration.use_sessions end |
Instance Method Details
#user_info ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/omniauth/strategies/crowd/crowd_validator.rb', line 16 def user_info user_info_hash = retrieve_user_info! if user_info_hash && @configuration.include_users_groups? user_info_hash = add_user_groups!(user_info_hash) else user_info_hash end if user_info_hash && @configuration.use_sessions? user_info_hash = set_session!(user_info_hash) end user_info_hash end |