Class: UserPlane::OmniAuth::Builder
- Inherits:
-
OmniAuth::Builder
- Object
- OmniAuth::Builder
- UserPlane::OmniAuth::Builder
- Defined in:
- lib/user_plane/omniauth.rb
Overview
Wraps OmniAuth::Builder to provide custom callback urls driven by the routes
Instance Method Summary collapse
Instance Method Details
#provider(klass, *args, &block) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/user_plane/omniauth.rb', line 42 def provider(klass, *args, &block) = args. args << .merge(request_path: UserPlane::OmniAuth.request_path_criteria_for(klass), callback_path: UserPlane::OmniAuth.callback_path_criteria_for(klass)) super end |