class KeycloakAdmin::ImpersonationRepresentation
Attributes
domain[RW]
redirect[RW]
same_realm[RW]
Public Class Methods
from_response(response, origin)
click to toggle source
# File lib/keycloak-admin/representation/impersonation_representation.rb, line 11 def self.from_response(response, origin) body = JSON.parse(response.body) representation = new representation.set_cookie_strings = response.headers[:set_cookie] representation.set_cookies = representation.set_cookie_strings.map { |set_cookie| parse_set_cookie_string(set_cookie, origin) } representation.same_realm = body["sameRealm"] representation.redirect = body["redirect"] representation.domain = origin representation end