feat(auth): support preventing users from updating their profile
This commit is contained in:
@@ -2,11 +2,14 @@ import Grid from '@mui/material/Grid';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import PageTitle from 'components/PageTitle';
|
||||
import Container from 'components/Container';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import useFormatMessage from 'hooks/useFormatMessage';
|
||||
import useSamlAuthProvider from 'hooks/useSamlAuthProvider';
|
||||
import AuthenticationConfig from './AuthenticationConfig';
|
||||
import SamlConfiguration from './SamlConfiguration';
|
||||
import RoleMappings from './RoleMappings';
|
||||
import useAdminSamlAuthProviders from 'hooks/useAdminSamlAuthProviders.ee';
|
||||
|
||||
function AuthenticationPage() {
|
||||
const formatMessage = useFormatMessage();
|
||||
|
||||
@@ -16,20 +19,37 @@ function AuthenticationPage() {
|
||||
const { data, isLoading: isProviderLoading } = useSamlAuthProvider({
|
||||
samlAuthProviderId,
|
||||
});
|
||||
|
||||
const provider = data?.data;
|
||||
|
||||
return (
|
||||
<Container sx={{ py: 3, display: 'flex', justifyContent: 'center' }}>
|
||||
<Grid container item xs={12} sm={10} md={9}>
|
||||
<Grid container item xs={12} sx={{ mb: [2, 5] }}>
|
||||
<Grid container item xs={12}>
|
||||
<PageTitle>{formatMessage('authenticationPage.title')}</PageTitle>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sx={{ pt: 5, pb: 5 }}>
|
||||
<Stack spacing={5}>
|
||||
<AuthenticationConfig />
|
||||
|
||||
<Divider />
|
||||
</Stack>
|
||||
</Grid>
|
||||
|
||||
<Grid container item xs={12}>
|
||||
<PageTitle variant="h4">{formatMessage('samlAuthenticationPage.title')}</PageTitle>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sx={{ pt: 5, pb: 5 }}>
|
||||
<Stack spacing={5}>
|
||||
<SamlConfiguration
|
||||
provider={provider}
|
||||
providerLoading={isProviderLoading}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
<RoleMappings
|
||||
provider={provider}
|
||||
providerLoading={isProviderLoading}
|
||||
|
Reference in New Issue
Block a user