mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 10:39:26 -05:00
5310808d3b
If a user tries to do UI Auth via SSO, but uses the wrong account on the SSO IdP, try to give them a better error. Previously, the UIA would claim to be successful, but then the operation in question would simply fail with "auth fail". Instead, serve up an error page which explains the failure.
19 lines
576 B
HTML
19 lines
576 B
HTML
<html>
|
|
<head>
|
|
<title>Authentication Failed</title>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<p>
|
|
We were unable to validate your <tt>{{server_name | e}}</tt> account via
|
|
single-sign-on (SSO), because the SSO Identity Provider returned
|
|
different details than when you logged in.
|
|
</p>
|
|
<p>
|
|
Try the operation again, and ensure that you use the same details on
|
|
the Identity Provider as when you log into your account.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|