Module: AuthlogicOpenid::ActsAsAuthentic::Config

Defined in:
lib/authlogic_openid/acts_as_authentic.rb

Instance Method Summary collapse

Instance Method Details

#openid_optional_fields(value = nil) ⇒ Object Also known as: openid_optional_fields=

Same as required_fields, but optional instead.

  • Default: []

  • Accepts: Array of symbols



34
35
36
# File 'lib/authlogic_openid/acts_as_authentic.rb', line 34

def openid_optional_fields(value = nil)
  rw_config(:openid_optional_fields, value, [])
end

#openid_required_fields(value = nil) ⇒ Object Also known as: openid_required_fields=

Some OpenID providers support a lightweight profile exchange protocol, for those that do, you can require certain fields. This is convenient for new registrations, as it will basically fill out the fields in the form for them, so they don’t have to re-type information already stored with their OpenID account.

For more info and what fields you can use see: openid.net/specs/openid-simple-registration-extension-1_0.html

  • Default: []

  • Accepts: Array of symbols



25
26
27
# File 'lib/authlogic_openid/acts_as_authentic.rb', line 25

def openid_required_fields(value = nil)
  rw_config(:openid_required_fields, value, [])
end