Exception: OpenID::Server::UntrustedReturnURL
- Inherits:
-
ProtocolError
- Object
- Exception
- ProtocolError
- OpenID::Server::UntrustedReturnURL
- Defined in:
- lib/openid/server.rb
Overview
A return_to is outside the trust_root.
Instance Attribute Summary collapse
-
#return_to ⇒ Object
readonly
Returns the value of attribute return_to.
-
#trust_root ⇒ Object
readonly
Returns the value of attribute trust_root.
Attributes inherited from ProtocolError
#contact, #openid_message, #reference
Instance Method Summary collapse
-
#initialize(message, return_to, trust_root) ⇒ UntrustedReturnURL
constructor
A new instance of UntrustedReturnURL.
- #to_s ⇒ Object
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(, return_to, trust_root) super() @return_to = return_to @trust_root = trust_root end |
Instance Attribute Details
#return_to ⇒ Object (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_root ⇒ Object (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_s ⇒ Object
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 |