diff options
Diffstat (limited to 'web/src/containers/auth')
-rw-r--r-- | web/src/containers/auth/Auth.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/src/containers/auth/Auth.jsx b/web/src/containers/auth/Auth.jsx index e57e12963..177e9a02d 100644 --- a/web/src/containers/auth/Auth.jsx +++ b/web/src/containers/auth/Auth.jsx @@ -264,10 +264,11 @@ class AuthContainer extends React.Component { if (info.isFetching) { return (<><div style={containerStyles}>Fetching auth info ...</div></>) } - if (auth.info && auth.info.default_realm) { + // auth_params.authority is only set if an OpenID Connect auth is available + if (auth.info && auth.info.default_realm && auth.auth_params.authority) { return this.renderButton(containerStyles) } else { - return (<div style={containerStyles} title="Authentication disabled">-</div>) + return (<div style={containerStyles} title='Authentication disabled'>-</div>) } } } |