mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
remote_billing: Add redirects to login for unauthed user in legacy flow.
Analogical to the more complex mechanism implemented for the RemoteRealm flow in a previous commit in authenticated_remote_realm_management_endpoint. As explained in the code comment, this is much easier because: In this flow, we can only redirect to our local "legacy server flow login" page. That means that we can do it universally whether the user has an expired identity_dict, or just lacks any form of authentication info at all - there are no security concerns since this is just a local redirect.
This commit is contained in:
committed by
Tim Abbott
parent
44ac99b8fc
commit
134e3bfa68
@@ -137,7 +137,7 @@ def get_remote_server_from_session(
|
||||
)
|
||||
|
||||
if identity_dict is None:
|
||||
raise JsonableError(_("User not authenticated"))
|
||||
raise RemoteBillingAuthenticationError
|
||||
|
||||
remote_server_uuid = identity_dict["remote_server_uuid"]
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user