Class: TwoFactorAuth::TrustedFacetsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- TwoFactorAuth::TrustedFacetsController
- Defined in:
- app/controllers/two_factor_auth/trusted_facets_controller.rb
Overview
Does not inherit from ApplicationController because many of those enforce logins on all but a whitelist of pages and the U2F spec requires this respond to a request with no cookies or other auth.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 |
# File 'app/controllers/two_factor_auth/trusted_facets_controller.rb', line 6 def index render text: TwoFactorAuth.facets.to_json, content_type: "application/fido.trusted-apps+json" end |