class Keycard::Request::CosignAttributes
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.
Public Instance Methods
client_ip()
click to toggle source
# File lib/keycard/request/cosign_attributes.rb, line 17 def client_ip safe('HTTP_X_FORWARDED_FOR').split(',').first end
user_eid()
click to toggle source
# File lib/keycard/request/cosign_attributes.rb, line 13 def user_eid user_pid end
user_pid()
click to toggle source
# File lib/keycard/request/cosign_attributes.rb, line 9 def user_pid get 'HTTP_X_REMOTE_USER' end