Skip to content

Conversation

@mattkram
Copy link
Collaborator

@mattkram mattkram commented Oct 28, 2025

Summary

CLI-84

The anaconda auth subcommand from anaconda-client is structured as a command, vs. an entrypoint with its own subcommands. When listing anaconda-auth as a dependency of anaconda-client for migration of the login flows to unified auth, some of the edge case regression tests were broken.

This change enhances the anaconda auth main callback function such that we can handle any additional arguments that might be passed in, such as anaconda auth --remove token1 token2. Before this change the token2 string would be treated as a (missing) subcommand and raise an error.

To resolve this, we accept all extra arguments and then manually handle delegation either to the legacy function in anaconda-client or to the subcommands mounted to the auth app in anaconda-auth.

Over time, as auth is further unified we can migrate the implementation(s) over and remove this duplication.

@mattkram mattkram marked this pull request as ready for review October 29, 2025 02:21
@mattkram mattkram changed the title fix: Allow extra args and -h for help in anaconda auth callback fix: Allow extra args and -h for help in anaconda auth callback to support anaconda-client migration Oct 29, 2025
@mattkram mattkram merged commit e566c7c into main Oct 29, 2025
10 checks passed
@mattkram mattkram deleted the fix/main-callback branch October 29, 2025 04:15
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.

3 participants