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

Move and refactor meadow cloud login to meadow login #497

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

stevenkuhn
Copy link
Contributor

This updates the meadow cloud login and meadow cloud logout commands to remove the cloud portion from the commands. It also includes refactoring since the login command no longer reaching out to Meadow.Cloud to retrieve the user from there. Instead, that responsibility is passed to the BaseCloudCommand<T> base class. This also reduces the amount of duplicate code by moving the --host arugment in BaseCloudCommand<T>. It also introduces to methods that can be used in deriving classes: PreAuthenticatedValidation and ExecuteCloudCommand. The former provides a way to run validation checks before authentication takes place. The latter is executed after the user is authenticated (or gives an error if they are not).

@ctacke ctacke merged commit b25f474 into develop Feb 26, 2024
1 check passed
@stevenkuhn stevenkuhn deleted the feature/refactor-login branch February 26, 2024 15:54
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.

2 participants