Class: StandardId::Api::WellKnown::JwksController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- StandardId::Api::WellKnown::JwksController
- Defined in:
- app/controllers/standard_id/api/well_known/jwks_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/standard_id/api/well_known/jwks_controller.rb', line 7 def show jwks = StandardId::JwtService.jwks if jwks.nil? render json: { error: "JWKS not available" }, status: :not_found return end response.headers["Cache-Control"] = "public, max-age=3600" render json: jwks end |