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.



1542
1543
1544
1545
1546
# File 'lib/openid/server.rb', line 1542

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.



1540
1541
1542
# File 'lib/openid/server.rb', line 1540

def return_to
  @return_to
end

#trust_rootObject (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_sObject



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