Sha256: 3f2034834a680f6aeee826ae87e0fc4365c5daa98b4796a0e58bff3706af7337
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true module Keycard::Request # This class extracts attributes for Cosign-protected applications. It # follows the same basic pattern as for general proxied requests; that is, # the pid/eid are the same and there are currently no additional # attributes extracted. class CosignAttributes < Attributes def user_pid get 'HTTP_X_REMOTE_USER' end def user_eid user_pid end def client_ip safe('HTTP_X_FORWARDED_FOR').split(',').first end end end
Version data entries
4 entries across 4 versions & 1 rubygems