Skip to content

Commit

Permalink
Add warning message in simple auth manager: dev only auth manager
Browse files Browse the repository at this point in the history
  • Loading branch information
vincbeck committed Feb 7, 2025
1 parent ae46b9e commit 7ae23d8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion airflow/auth/managers/simple/ui/src/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ export const Login = () => {
}

return (
<>
<Alert.Root status="warning">
<Alert.Indicator />
<Alert.Content>
<Alert.Title>Development-only auth manager configured</Alert.Title>
<Alert.Description>
The auth manager configured in your environment is the <strong>Simple Auth Manager</strong>, which is
intended for development use only. It is not suitable for production and <strong>should not be used in
a production environment</strong>.
</Alert.Description>
</Alert.Content>
</Alert.Root>
<Container mt={2} maxW="2xl" p="4" border="1px" borderColor="gray.500" borderWidth="1px" borderStyle="solid">
<Heading mb={6} fontWeight="normal" size="lg" colorPalette="blue">
Sign in
Expand All @@ -59,5 +71,6 @@ export const Login = () => {

<Text mb={4}>Enter your login and password below:</Text>
<LoginForm onLogin={onLogin} isPending={isPending} />
</Container>);
</Container>
</>);
};

0 comments on commit 7ae23d8

Please sign in to comment.