Module: AuthlogicOauth2::Session::Config
- Defined in:
- lib/authlogic_oauth2/session.rb
Instance Method Summary collapse
-
#find_by_oauth2_method(value = nil) ⇒ Object
(also: #find_by_oauth2_method=)
-
Default:
:find_by_oauth2_token *Accepts:
Symbol.
-
- #oauth2_cannot_find_record_message(value = nil) ⇒ Object (also: #oauth2_cannot_find_record_message=)
-
#oauth2_client_id(value = nil) ⇒ Object
(also: #oauth2_client_id=)
-
Default:
” *Accepts:
String.
-
-
#oauth2_client_secret(value = nil) ⇒ Object
(also: #oauth2_client_secret=)
-
Default:
” *Accepts:
String.
-
-
#oauth2_scope(value = nil) ⇒ Object
(also: #oauth2_scope=)
-
Default:
” *Accepts:
String.
-
-
#oauth2_site(value = nil) ⇒ Object
(also: #oauth2_site=)
-
Default:
” *Accepts:
String.
-
Instance Method Details
#find_by_oauth2_method(value = nil) ⇒ Object Also known as: find_by_oauth2_method=
-
Default:
:find_by_oauth2_token -
Accepts:
Symbol
15 16 17 |
# File 'lib/authlogic_oauth2/session.rb', line 15 def find_by_oauth2_method(value = nil) rw_config(:find_by_oauth2_method, value, :find_by_oauth2_token) end |
#oauth2_cannot_find_record_message(value = nil) ⇒ Object Also known as: oauth2_cannot_find_record_message=
48 49 50 |
# File 'lib/authlogic_oauth2/session.rb', line 48 def (value = nil) rw_config(:oauth2_cannot_find_record_message, value, "Could not find user in our database, have you registered with your Oauth2 account?") end |
#oauth2_client_id(value = nil) ⇒ Object Also known as: oauth2_client_id=
-
Default:
” -
Accepts:
String
22 23 24 |
# File 'lib/authlogic_oauth2/session.rb', line 22 def oauth2_client_id(value = nil) rw_config(:oauth2_client_id, value, '') end |
#oauth2_client_secret(value = nil) ⇒ Object Also known as: oauth2_client_secret=
-
Default:
” -
Accepts:
String
29 30 31 |
# File 'lib/authlogic_oauth2/session.rb', line 29 def oauth2_client_secret(value = nil) rw_config(:oauth2_client_secret, value, '') end |
#oauth2_scope(value = nil) ⇒ Object Also known as: oauth2_scope=
-
Default:
” -
Accepts:
String
43 44 45 |
# File 'lib/authlogic_oauth2/session.rb', line 43 def oauth2_scope(value = nil) rw_config(:oauth2_scope, value, '') end |
#oauth2_site(value = nil) ⇒ Object Also known as: oauth2_site=
-
Default:
” -
Accepts:
String
36 37 38 |
# File 'lib/authlogic_oauth2/session.rb', line 36 def oauth2_site(value = nil) rw_config(:oauth2_site, value, '') end |