Class: OpenSesame::GithubAuth
- Inherits:
-
OmniAuth::Strategies::GitHub
- Object
- OmniAuth::Strategies::GitHub
- OpenSesame::GithubAuth
- Defined in:
- lib/open_sesame/github_auth.rb
Instance Method Summary collapse
-
#fail!(message_key, exception = nil) ⇒ Object
overrides OmniAuth::Strategy#fail!.
Instance Method Details
#fail!(message_key, exception = nil) ⇒ Object
overrides OmniAuth::Strategy#fail!
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/open_sesame/github_auth.rb', line 11 def fail!(, exception = nil) self.env['omniauth.error'] = exception self.env['omniauth.error.type'] = .to_sym self.env['omniauth.error.strategy'] = self if exception log :error, "Authentication failure! #{}: #{exception.class.to_s}, #{exception.}" else log :error, "Authentication failure! #{} encountered." end .on_failure.call(self.env) end |