Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning message in simple auth manager: dev only auth manager #46564

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
</>);
};