Class: OmniAuth::Strategies::MojeID
- Inherits:
-
OpenID
- Object
- OpenID
- OmniAuth::Strategies::MojeID
- Includes:
- MojeIDAttributes, OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/mojeid.rb
Overview
OmniAuth strategy for connecting via MojeID.
Constant Summary
Constants included from MojeIDAttributes
Instance Method Summary collapse
-
#request_phase ⇒ Object
Called by omniauth when /auth/mojeid is opened.
Instance Method Details
#request_phase ⇒ Object
Called by omniauth when /auth/mojeid is opened.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/omniauth/strategies/mojeid.rb', line 22 def request_phase openid = Rack::OpenID.new(dummy_app, [:store]) response = openid.call(env) case env['rack.openid.response'] when Rack::OpenID::MissingResponse, Rack::OpenID::TimeoutResponse fail!(:connection_failed) else response end end |