Class: MaitreD::API::SSOGuard
- Inherits:
-
Sliver::Hook
- Object
- Sliver::Hook
- MaitreD::API::SSOGuard
- Defined in:
- lib/maitre_d/api/sso_guard.rb
Instance Method Summary collapse
Instance Method Details
#continue? ⇒ Boolean
2 3 4 |
# File 'lib/maitre_d/api/sso_guard.rb', line 2 def continue? valid_token? && end |
#respond ⇒ Object
6 7 8 9 10 |
# File 'lib/maitre_d/api/sso_guard.rb', line 6 def respond response.status = 403 response.body = ['403 Forbidden'] response.headers['Content-Length'] = response.body.first.length.to_s end |