Class: AtomicLti::JwksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- AtomicLti::JwksController
- Defined in:
- app/controllers/atomic_lti/jwks_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/atomic_lti/jwks_controller.rb', line 3 def index respond_to do |format| # Map is required or the outer to_json will show your private keys to the world format.json { render json: { keys: jwks_from_domain.map(&:to_json) }.to_json } format.text { render plain: jwks_from_domain.map(&:to_pem).join('\n') } end end |