Module: Cassette::Authentication::Filter
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/cassette/authentication/filter.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #validate_authentication_ticket(service = Cassette.config.service) ⇒ Object
- #validate_raw_role!(role) ⇒ Object
- #validate_role!(role) ⇒ Object
Instance Method Details
#validate_authentication_ticket(service = Cassette.config.service) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cassette/authentication/filter.rb', line 20 def validate_authentication_ticket(service = Cassette.config.service) ticket = request.headers['Service-Ticket'] || params[:ticket] if ENV['NOAUTH'] Cassette.logger.debug 'NOAUTH set and no Service Ticket, skipping authentication' self.current_user = Cassette::Authentication::User.new return end self.current_user = Cassette::Authentication.validate_ticket(ticket, service) end |