Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rmyers
Copy link

@rmyers rmyers commented Sep 25, 2025

  • Adds option for using device code flow
  • hack around auth url

Test example:

ANACONDA_AUTH_USE_DEVICE_FLOW=true anaconda login 
 choose destination: 
 * anaconda.com      
   anaconda.org      
You are already logged into Anaconda (anaconda.com). Would you like to force a new login? [y/n] (n): y
Attempting to automatically open the authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:

https://auth.anaconda.com/ui/activate

Then enter the code:

BLNJ-KXJR

⠏ Waiting for authorization (CTRL-C to cancel)

* Adds option for using device code flow
* hack around auth url
def _do_login(config: AnacondaAuthConfig, basic: bool) -> None:
if basic:
access_token = _login_with_username(config=config)
elif True:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add an option check here obv

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think were now ready to remove basic auth.

anaconda-renovate bot and others added 15 commits October 22, 2025 10:26
…a to v0.34.0 (#124)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
* chore: Add testing for Python 3.13

* fix: Remove duplicate option from CLI
…3.1 (#126)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
…3.2 (#130)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
* fix: Add explicit PHONY targets to expose the bug

* fix: Ensure pre-commit is installed via conda

* fix: Add missing Makefile targets

* fix: Fix draft PRs

* chore(pre-commit): linting

---------

Co-authored-by: Anaconda Bot <[email protected]>
* feat: Copy in conda_api

* fix: Update test references to use conda_api

* fix: Path in documentation

* fix: Ignore types for run_command

* fix: Update last two references

* fix: Also add version check for restore_free_channel

* refac: Remove duplicate enum definition
* feat: Add conda subcommand definition for conda-token

* fix: Type hints

* feat: Add test to ensure we trigger the plugin system
…3.3 (#135)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
…4.0 (#140)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
…a to v0.34.1 (#141)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
…4.1 (#143)

Co-authored-by: anaconda-renovate[bot] <117830771+anaconda-renovate[bot]@users.noreply.github.com>
@rmyers rmyers marked this pull request as ready for review October 22, 2025 15:27
"""Display information about the currently signed-in user"""
client = BaseClient()
# This endpoint is available everywhere and should be used
# response = client.get("/api/auth/oauth2/userinfo")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to uncomment this to make it work on self-hosted env's

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.

4 participants