Class: OmniAuth::Strategies::WorkOS
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::WorkOS
- Defined in:
- lib/omniauth/strategies/workos.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/omniauth/strategies/workos.rb', line 68 def super.tap do |params| [:authorize_options].each do |key| value = request.params[key] params[key] = value unless blank?(value) end end end |
#callback_phase ⇒ Object
87 88 89 90 91 |
# File 'lib/omniauth/strategies/workos.rb', line 87 def callback_phase super rescue Error => e fail!(e.code, e) end |
#request_phase ⇒ Object
77 78 79 80 81 82 83 84 85 |
# File 'lib/omniauth/strategies/workos.rb', line 77 def request_phase if blank?(.client_id) fail!(:missing_client_id) elsif blank?(.client_secret) fail!(:missing_client_secret) else super end end |