Skip to content

remotes force_auth - #20341

Open
memsharded wants to merge 1 commit into
conan-io:develop2from
memsharded:feature/force_auth
Open

memsharded wants to merge 1 commit into
conan-io:develop2from
memsharded:feature/force_auth

Conversation

@memsharded

Copy link
Copy Markdown
Member

Changelog: Feature: New remotes force_auth capability.
Docs: https://github.com/conan-io/docs/pull/XXXX

Close #20338

# token is None when you change user with user command
# Anonymous is not enough, ask for a user
ConanOutput().info(f"Remote '{remote.name}' needs authentication, obtaining credentials")
if self._get_credentials_and_authenticate(rest_client, user, remote):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This if was unnecessary, always returned True or raised an Auth exception

@memsharded memsharded added this to the 2.33.0 milestone Sep 18, 2026
@memsharded
memsharded requested a review from AbrilRBS September 18, 2026 11:05
@memsharded
memsharded marked this pull request as ready for review September 18, 2026 11:05
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.

[feature] Add a remotes.json field to prohibit anonymous access

2 participants