Sha256: 78976f04c8467869e52bd369a0931ed0042ef8d308b6b19bccc510d50f0943a2
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
require 'jwt' module ForestRails class ApplicationController < ActionController::Base before_filter :authenticate_user_from_jwt def authenticate_user_from_jwt JWT.decode request.headers[:Authorization].split[1], ForestRails.jwt_signing_key end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forest_rails-0.0.4 | app/controllers/forest_rails/application_controller.rb |