Module: RapidApi::Auth::Concerns::AuthenticatedController
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rapid_api/auth/concerns/authenticated_controller.rb
Defined Under Namespace
Modules: AuthenticationHelpers, ClassMethods
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
14 15 16 17 18 19 |
# File 'lib/rapid_api/auth/concerns/authenticated_controller.rb', line 14 def authenticate! self.extend JWTHelpers self.extend AuthenticationHelpers self.authenticated = self.class.authenticate_proc.call(self) not_authenticated! if authenticated.nil? end |