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

Any support for switching URLs despite having the same credentials? IE, diff servers, same auth layer. #6

Open
dovy opened this issue Dec 21, 2024 · 1 comment

Comments

@dovy
Copy link

dovy commented Dec 21, 2024

No description provided.

@mharrisb1
Copy link
Owner

Can you provide an example here? Right now, the client is tied 1:1 to a server so if 2 servers have the same auth token then it would still require 2 clients.

import cube_http

shared_token = "..."
client_1 = cube_http.Client({"url": "...", "token": shared_token})
client_2 = cube_http.Client({"url": "...", "token": shared_token})

Maybe there could be some overrides with each request method that would allow you to programmatically reconfigure some of the client options. Idk. Hard to design without a clearer use case

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

No branches or pull requests

2 participants