Module: Warden::OpenID
- Defined in:
- lib/warden/openid.rb
Defined Under Namespace
Classes: Config, Strategy
Constant Summary
collapse
- CONFIG_EXAMPLE =
<<-CODE
Warden::OpenID.configure do |config|
config.user_finder do |response|
# do something
end
end
CODE
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
36
37
38
|
# File 'lib/warden/openid.rb', line 36
def config
@@config ||= Config.new
end
|
40
41
42
|
# File 'lib/warden/openid.rb', line 40
def configure(&block)
block.call(config)
end
|
.user_finder(&block) ⇒ Object
44
45
46
47
48
49
50
|
# File 'lib/warden/openid.rb', line 44
def user_finder(&block)
$stderr.puts "DEPRECATION WARNING: Warden::OpenID.user_finder is deprecated. Use Warden::OpenID::Config#user_finder instead.\n\n#{CONFIG_EXAMPLE}"
configure do |config|
config.user_finder(&block)
end
end
|