Class: OmniAuth::Strategies::Crowd::Configuration
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::Crowd::Configuration
- Defined in:
- lib/omniauth/strategies/crowd/configuration.rb
Constant Summary collapse
- DEFAULT_SESSION_URL =
"%s/rest/usermanagement/latest/session"
- DEFAULT_AUTHENTICATION_URL =
"%s/rest/usermanagement/latest/authentication"
- DEFAULT_USER_GROUP_URL =
"%s/rest/usermanagement/latest/user/group/direct"
- DEFAULT_CONTENT_TYPE =
'application/xml'
- DEFAULT_SESSION_COOKIE =
'crowd.token_key'
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#crowd_application_name ⇒ Object
readonly
Returns the value of attribute crowd_application_name.
-
#crowd_password ⇒ Object
readonly
Returns the value of attribute crowd_password.
-
#disable_ssl_verification ⇒ Object
(also: #disable_ssl_verification?)
readonly
Returns the value of attribute disable_ssl_verification.
-
#include_users_groups ⇒ Object
(also: #include_users_groups?)
readonly
Returns the value of attribute include_users_groups.
-
#session_cookie ⇒ Object
readonly
Returns the value of attribute session_cookie.
-
#session_url ⇒ Object
readonly
Returns the value of attribute session_url.
-
#sso_url ⇒ Object
readonly
Returns the value of attribute sso_url.
-
#sso_url_image ⇒ Object
readonly
Returns the value of attribute sso_url_image.
-
#use_sessions ⇒ Object
(also: #use_sessions?)
readonly
Returns the value of attribute use_sessions.
Instance Method Summary collapse
-
#authentication_url(username) ⇒ String
Build a Crowd authentication URL from
username
. -
#initialize(params) ⇒ Configuration
constructor
A new instance of Configuration.
- #user_group_url(username) ⇒ Object
Constructor Details
#initialize(params) ⇒ Configuration
Returns a new instance of Configuration.
37 38 39 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 37 def initialize(params) parse_params params end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def content_type @content_type end |
#crowd_application_name ⇒ Object (readonly)
Returns the value of attribute crowd_application_name.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def crowd_application_name @crowd_application_name end |
#crowd_password ⇒ Object (readonly)
Returns the value of attribute crowd_password.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def crowd_password @crowd_password end |
#disable_ssl_verification ⇒ Object (readonly) Also known as: disable_ssl_verification?
Returns the value of attribute disable_ssl_verification.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def disable_ssl_verification @disable_ssl_verification end |
#include_users_groups ⇒ Object (readonly) Also known as: include_users_groups?
Returns the value of attribute include_users_groups.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def include_users_groups @include_users_groups end |
#session_cookie ⇒ Object (readonly)
Returns the value of attribute session_cookie.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def @session_cookie end |
#session_url ⇒ Object (readonly)
Returns the value of attribute session_url.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def session_url @session_url end |
#sso_url ⇒ Object (readonly)
Returns the value of attribute sso_url.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def sso_url @sso_url end |
#sso_url_image ⇒ Object (readonly)
Returns the value of attribute sso_url_image.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def sso_url_image @sso_url_image end |
#use_sessions ⇒ Object (readonly) Also known as: use_sessions?
Returns the value of attribute use_sessions.
13 14 15 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 13 def use_sessions @use_sessions end |
Instance Method Details
#authentication_url(username) ⇒ String
Build a Crowd authentication URL from username
.
46 47 48 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 46 def authentication_url(username) append_username @authentication_url, username end |
#user_group_url(username) ⇒ Object
50 51 52 |
# File 'lib/omniauth/strategies/crowd/configuration.rb', line 50 def user_group_url(username) @user_group_url.nil? ? nil : append_username( @user_group_url, username) end |