Sha256: cdea3fe8b000fbf14896cc996914baa80d5ffb327c2aba1e9e49d5a7ae0483d3
Contents?: true
Size: 424 Bytes
Versions: 7
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems