mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-01 05:13:51 +01:00
fix (sso): make auth middleware optional
This commit is contained in:
parent
e827e8149b
commit
4644046fe1
1 changed files with 1 additions and 0 deletions
|
|
@ -415,6 +415,7 @@ function AuthenticationMiddleware({ authentication_available, authentication_ena
|
|||
return auth_key === objectGet(authentication_enabled, ["identity_provider", "type", "value"]);
|
||||
};
|
||||
|
||||
if (Object.keys(authentication_available).length === 0) return null;
|
||||
return (
|
||||
<div className="component_authenticationmiddleware" style={{minHeight: "400px"}}>
|
||||
<h2>Authentication Middleware</h2>
|
||||
|
|
|
|||
Loading…
Reference in a new issue