Module: OktaAuthProxy::OktaAuth::AuthHelpers
- Defined in:
- lib/okta-auth-proxy/auth.rb
Instance Method Summary collapse
Instance Method Details
#authorized?(host) ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'lib/okta-auth-proxy/auth.rb', line 14 def (host) if session[:uid] return ENV['PROXY_TARGET'] else return false end end |
#protected! ⇒ Object
9 10 11 12 |
# File 'lib/okta-auth-proxy/auth.rb', line 9 def protected! return if (request.host) redirect to("/auth/saml?redirectUrl=#{URI::encode(request.path)}") end |