module Commons::Authentication::AuthenticateByJWT
Public Instance Methods
Private Instance Methods
jwt()
click to toggle source
# File lib/commons/authentication/authenticate_by_jwt.rb, line 19 def jwt jwt ||= request.headers['Authorization'] return nil unless jwt.instance_of? String jwt = jwt.split(' ').last if jwt end