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

fix: Refactor auth flow, re-enable login command #272

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

pederhan
Copy link
Member

This PR refactors the authentication flow in auth.py by moving error handling and application configuration/bootstrapping to a separate method. This guarantees that the application is configured consistently regardless of authentication method.

This refactor also lets us unhide the login command, as it should now behave consistently regardless of configuration and application state.

zabbix_cli/state.py Outdated Show resolved Hide resolved
@pederhan pederhan changed the title feat: Refactor auth flow, re-enable login command fix: Refactor auth flow, re-enable login command Dec 11, 2024
@pederhan pederhan merged commit 019475b into unioslo:master Dec 11, 2024
5 checks passed
@pederhan pederhan deleted the reactivate-login branch December 11, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant