GUI: Do not show sign-in button if no IdP is available
Signing in is only possible with an OpenIDConnect IdP associated to a tenant. If only a local authenticator is configured (ie H256 driver) do not display the sign-in button. Change-Id: Ic2cb9a7ba57ed7364cf2a0ece500d3d4fdcbc775
This commit is contained in:
parent
50a8d8ab96
commit
f72de10b79
|
@ -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>)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue