mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 12:16:12 +00:00
![Richard van der Hoff](/assets/img/avatar_default.png)
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>
|