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.
1542 1543 1544 1545 1546 |
# File 'lib/openid/server.rb', line 1542 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.
1540 1541 1542 |
# File 'lib/openid/server.rb', line 1540 def return_to @return_to end |
#trust_root ⇒ Object (readonly)
Returns the value of attribute trust_root.
1540 1541 1542 |
# File 'lib/openid/server.rb', line 1540 def trust_root @trust_root end |
Instance Method Details
#to_s ⇒ Object
1548 1549 1550 1551 1552 1553 1554 |
# File 'lib/openid/server.rb', line 1548 def to_s format( "return_to %s not under trust_root %s", @return_to, @trust_root, ) end |