Exception: OpenID::Server::UntrustedReturnURL

Inherits:
ProtocolError
  • Object
show all
Defined in:
lib/openid/server.rb

Overview

A return_to is outside the trust_root.

Instance Attribute Summary collapse

Attributes inherited from ProtocolError

#contact, #openid_message, #reference

Instance Method Summary collapse

Methods inherited from ProtocolError

#encode_to_kvform, #encode_to_url, #get_return_to, #has_return_to, #to_form_markup, #to_html, #to_message, #which_encoding

Constructor Details

#initialize(message, return_to, trust_root) ⇒ UntrustedReturnURL

Returns a new instance of UntrustedReturnURL.



1517
1518
1519
1520
1521
# File 'lib/openid/server.rb', line 1517

def initialize(message, return_to, trust_root)
  super(message)
  @return_to = return_to
  @trust_root = trust_root
end

Instance Attribute Details

#return_toObject (readonly)

Returns the value of attribute return_to.



1515
1516
1517
# File 'lib/openid/server.rb', line 1515

def return_to
  @return_to
end

#trust_rootObject (readonly)

Returns the value of attribute trust_root.



1515
1516
1517
# File 'lib/openid/server.rb', line 1515

def trust_root
  @trust_root
end

Instance Method Details

#to_sObject



1523
1524
1525
1526
1527
# File 'lib/openid/server.rb', line 1523

def to_s
  return sprintf("return_to %s not under trust_root %s",
                 @return_to,
                 @trust_root)
end