Module: Kingsman::OmniAuth::UrlHelpers
- Defined in:
- lib/kingsman/omniauth/url_helpers.rb
Overview
Note: scope is at the end of the method name for Jets whereas it is at the beginning for Rails
Instance Method Summary collapse
- #omniauth_authorize_path(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_authorize_url(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_callback_path(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_callback_url(resource_or_scope, provider, *args) ⇒ Object
Instance Method Details
#omniauth_authorize_path(resource_or_scope, provider, *args) ⇒ Object
7 8 9 10 |
# File 'lib/kingsman/omniauth/url_helpers.rb', line 7 def (resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_authorize_#{scope}_path", *args) end |
#omniauth_authorize_url(resource_or_scope, provider, *args) ⇒ Object
12 13 14 15 |
# File 'lib/kingsman/omniauth/url_helpers.rb', line 12 def (resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_authorize_#{scope}_url", *args) end |
#omniauth_callback_path(resource_or_scope, provider, *args) ⇒ Object
17 18 19 20 |
# File 'lib/kingsman/omniauth/url_helpers.rb', line 17 def omniauth_callback_path(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_callback_#{scope}_path", *args) end |
#omniauth_callback_url(resource_or_scope, provider, *args) ⇒ Object
22 23 24 25 |
# File 'lib/kingsman/omniauth/url_helpers.rb', line 22 def omniauth_callback_url(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_callback_#{scope}_url", *args) end |