Module: AuthlogicOauth2::Session::Config

Defined in:
lib/authlogic_oauth2/session.rb

Instance Method Summary collapse

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_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