question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature] Allow conan to provide cookie to repository

See original GitHub issue

We have an Artifactory instance which behind an Oauth2 reverse proxy and so doesn’t understand basic auth. As such we are finding it impractical to download packages from it.

It would be nice to be able to provide a parameter, e.g. --cookie "token=xxx", to Conan which would be used on all HTTP requests. This would allow us to get through the proxy using a cookie.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timbrown5commented, Jul 17, 2020

Sorry I have forgotten to comment. We are using Conan 1.22.2 and this is fixed. Also tring 1.27.1 and we are still able to authenticate with Artifactory, so I am closng this.

1reaction
timbrown5commented, Dec 12, 2019

Sorry, answered my own question by using the trace log:

{"_action": "COMMAND", "name": "authenticate", "parameters": {"password": "**********", "remote_name": "conan-local", "skip_auth": false}, "time": 1576147060.920432}
{"_action": "COMMAND", "name": "get_remote_by_name", "parameters": {}, "time": 1576147060.923322}
{"_action": "REST_API_CALL", "duration": 0.08773016929626465, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.20.4 (Python 2.7.15rc1) python-requests/2.22.0", "X-Client-Anonymous-Id": "**********"}, "method": "GET", "time": 1576147061.012792, "url": ".../api/conan/conan-local/v1/ping"}
{"_action": "EXCEPTION", "class": "ForbiddenException", "message": "403: Forbidden. [Remote: conan-local]", "time": 1576147061.013645}

It seems to be using an Authorization header. Guess I need to do some digging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recipe and Sources in a Different Repo - Conan Docs
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and...
Read more >
Conan packages in the Package Registry - GitLab Docs
The GitLab Conan repository supports the following Conan CLI commands: conan upload : Upload your recipe and package files to the Package Registry....
Read more >
Cookie Policy - Funcom
Cookies are a standard feature of websites that allow us to store small ... and/or third party websites that provide social media services....
Read more >
Vcpkg Vs Conan: Best Package Manager For C++?
Conan and Vcpkg are excellent package managers for C/C++. In this post, we will analyse each tool and discuss features they provide!
Read more >
Oracle ATG Web Commerce - Profile Cookie Configuration
By default, the cookies that the Personalization module sends are temporary; they expire when the user exits the browser. To enable auto-login or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found