Merge "GUI: Do not show sign-in button if no IdP is available"
This commit is contained in:
commit
dd9579fc1a
|
@ -264,10 +264,11 @@ class AuthContainer extends React.Component {
|
||||||
if (info.isFetching) {
|
if (info.isFetching) {
|
||||||
return (<><div style={containerStyles}>Fetching auth info ...</div></>)
|
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)
|
return this.renderButton(containerStyles)
|
||||||
} else {
|
} else {
|
||||||
return (<div style={containerStyles} title="Authentication disabled">-</div>)
|
return (<div style={containerStyles} title='Authentication disabled'>-</div>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue