Class: OmniAuth::Strategies::REINZ
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::REINZ
- Defined in:
- lib/omniauth/strategies/reinz.rb
Constant Summary collapse
- STAGING_URL =
'https://reinztestorg.b2clogin.com/reinztestorg.onmicrosoft.com/b2c_1a_csi_signup_signin/'.freeze
- PRODUCTION_URL =
'https://login.reinz.co.nz/reinzorg.onmicrosoft.com/b2c_1a_csi_signup_signin/'.freeze
Instance Method Summary collapse
- #callback_url ⇒ Object
-
#client ⇒ Object
Overrride client to merge in site based on sandbox option.
- #request_phase ⇒ Object
Instance Method Details
#callback_url ⇒ Object
38 39 40 |
# File 'lib/omniauth/strategies/reinz.rb', line 38 def callback_url [:redirect_uri] || (full_host + script_name + callback_path) end |
#client ⇒ Object
Overrride client to merge in site based on sandbox option
22 23 24 25 26 27 28 |
# File 'lib/omniauth/strategies/reinz.rb', line 22 def client ::OAuth2::Client.new( .client_id, .client_secret, deep_symbolize(.).merge(site: site) ) end |
#request_phase ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/omniauth/strategies/reinz.rb', line 30 def request_phase request_params = { redirect_uri: callback_url, }.merge() redirect client.implicit.(request_params) end |