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

SimpleCumulocityApp default auth not working then running as microservice on C8Y #25

Closed
freke opened this issue Nov 14, 2022 · 1 comment
Milestone

Comments

@freke
Copy link

freke commented Nov 14, 2022

Then SimpleCumulocityApp without using "get_user_instance" and just use the SimpleCumulocityApp directly will get a 401 then runing as a microservice on C8Y, if running as a local docker container the same call works.
The python api is only using the C8Y_USER and C8Y_PASSWORD and that works localy but then deployed the C8Y_TENANT is also needed for the username the call should be: auth=HTTPBasicAuth(f'{C8Y_TENANT}/{C8Y_USER}', f'{C8Y_PASSWORD}') in the SimpleCumulocityApp init function altrnatively not set the Auth value at all, since it is set correctly in the CumulocityRestApi init function.

@chisou chisou added this to the 1.4 milestone Nov 16, 2022
@chisou
Copy link
Contributor

chisou commented Nov 23, 2022

Fixed in version 1.4

@chisou chisou closed this as completed Nov 23, 2022
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

When branches are created from issues, their pull requests are automatically linked.

2 participants