Sha256: e7f348f0957e8dcaf24699a4482e33c5e326e6baf8b65c0094f4bfabd3c47c46
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
require 'active_support' module Wso2Toolbox module IdentityHeaders extend ActiveSupport::Concern included do before_action :set_paper_trail_whodunnit end def user_identifier user_header = request.headers[:HTTP_USER_IDENTIFIER] user_header ? Base64.decode64(user_header) : nil end def user_for_paper_trail user_identifier end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wso2_toolbox-0.2.0 | lib/wso2_toolbox/identity_headers.rb |
wso2_toolbox-0.1.0 | lib/wso2_toolbox/identity_headers.rb |