Class: OmniAuth::Strategies::Authic
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Authic
- Defined in:
- lib/omniauth/strategies/authic.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/omniauth/strategies/authic.rb', line 47 def client raise "You must specify your Authic subdomain in setup i.e. :subdomain => 'mysubdomain'" if [:subdomain].blank? scheme = [:ssl] ? "https" : "http" # Make sure we set the site correctly before creating a client [:client_options][:site] = "#{scheme}://#{[:subdomain]}.#{[:domain]}" super end |
#raw_info ⇒ Object
55 56 57 |
# File 'lib/omniauth/strategies/authic.rb', line 55 def raw_info @raw_info ||= access_token.get("/authic_user_info.json").parsed end |
#request_phase ⇒ Object
41 42 43 44 45 |
# File 'lib/omniauth/strategies/authic.rb', line 41 def request_phase # Add authic_action into the params mix. This will let the Authic server know to serve up the signup or signin page .[:authic_action] = request.params["authic_action"] super end |