Skip to content

Commit ddfb66c

Browse files
author
tailor
committed
[project @ Move getDisplayIdentifier() to Response class]
1 parent 33d9112 commit ddfb66c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

openid/consumer/consumer.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,13 @@ def setEndpoint(self, endpoint):
16891689
else:
16901690
self.identity_url = endpoint.claimed_id
16911691

1692+
def getDisplayIdentifier(self):
1693+
"""Return the display identifier for this response.
1694+
"""
1695+
if self.endpoint is not None:
1696+
return self.endpoint.getDisplayIdentifier()
1697+
return None
1698+
16921699
class SuccessResponse(Response):
16931700
"""A response with a status of SUCCESS. Indicates that this request is a
16941701
successful acknowledgement from the OpenID server that the
@@ -1721,11 +1728,6 @@ def __init__(self, endpoint, message, signed_fields=None):
17211728
signed_fields = []
17221729
self.signed_fields = signed_fields
17231730

1724-
def getDisplayIdentifier(self):
1725-
"""Return the display identifier for this success response.
1726-
"""
1727-
return self.endpoint.getDisplayIdentifier()
1728-
17291731
def isOpenID1(self):
17301732
"""Was this authentication response an OpenID 1 authentication
17311733
response?

0 commit comments

Comments
 (0)