Class: Securial::StatusController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Securial::StatusController
- Defined in:
- app/controllers/securial/status_controller.rb
Overview
StatusController
Controller for checking system status and authentication state.
This controller provides a simple endpoint for checking if the Securial system is operational and retrieving basic information about the current authentication state, if applicable. This endpoint is publicly accessible and does not require authentication.
Typically used for:
- Health checks from monitoring systems
- Client applications to verify API availability
- Testing authentication status without making authenticated requests
Routes typically mounted at Securial/status/* in the host application.
Instance Method Summary collapse
-
#show ⇒ void
Shows the current Securial Engine status.
Methods inherited from ApplicationController
Instance Method Details
#show ⇒ void
This method returns an undefined value.
Shows the current Securial Engine status.
Provides information about the engine’s operational state and, if the request includes a valid authentication token, the current user. This endpoint is always accessible without authentication.
29 30 31 32 33 |
# File 'app/controllers/securial/status_controller.rb', line 29 def show @current_user = current_user Securial.logger.info("Status check initiated") render :show, status: :ok end |