class Amazon::Coral::HttpDelegationHelper
Public Class Methods
add_delegation_token(delegate_identity, request_identity)
click to toggle source
# File lib/amazon/coral/httpdelegationhelper.rb, line 8 def self.add_delegation_token(delegate_identity, request_identity) token = "" first = true delegate_identity.each do |k,v| if(first) first = false else token << ';' end token << "#{k}=#{v}" end request_identity[:http_delegation] = token if(token.length > 0) end