mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
rename BaseSSORedirectServlet for consistency
This commit is contained in:
parent
dde4118341
commit
79b9d9076d
@ -358,7 +358,7 @@ class LoginRestServlet(RestServlet):
|
|||||||
defer.returnValue(result)
|
defer.returnValue(result)
|
||||||
|
|
||||||
|
|
||||||
class BaseSsoRedirectServlet(RestServlet):
|
class BaseSSORedirectServlet(RestServlet):
|
||||||
"""Common base class for /login/sso/redirect impls"""
|
"""Common base class for /login/sso/redirect impls"""
|
||||||
|
|
||||||
PATTERNS = client_patterns("/login/(cas|sso)/redirect", v1=True)
|
PATTERNS = client_patterns("/login/(cas|sso)/redirect", v1=True)
|
||||||
@ -386,7 +386,7 @@ class BaseSsoRedirectServlet(RestServlet):
|
|||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
|
||||||
class CasRedirectServlet(BaseSsoRedirectServlet):
|
class CasRedirectServlet(BaseSSORedirectServlet):
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
super(CasRedirectServlet, self).__init__()
|
super(CasRedirectServlet, self).__init__()
|
||||||
self.cas_server_url = hs.config.cas_server_url.encode("ascii")
|
self.cas_server_url = hs.config.cas_server_url.encode("ascii")
|
||||||
@ -483,7 +483,7 @@ class CasTicketServlet(RestServlet):
|
|||||||
return user, attributes
|
return user, attributes
|
||||||
|
|
||||||
|
|
||||||
class SAMLRedirectServlet(BaseSsoRedirectServlet):
|
class SAMLRedirectServlet(BaseSSORedirectServlet):
|
||||||
PATTERNS = client_patterns("/login/sso/redirect", v1=True)
|
PATTERNS = client_patterns("/login/sso/redirect", v1=True)
|
||||||
|
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
|
Loading…
Reference in New Issue
Block a user