Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

How to use bearer token to login to the Client? #802

Open
marcusnh opened this issue Jan 3, 2023 · 0 comments
Open

How to use bearer token to login to the Client? #802

marcusnh opened this issue Jan 3, 2023 · 0 comments

Comments

@marcusnh
Copy link

marcusnh commented Jan 3, 2023

Is your feature request related to a problem? Please describe.

I want to use an access token for the pyvcloud.vcd.client when I connect to VCD. Is this possible?

Describe the solution you'd like

client = Client(secrets['sc2_url'],
verify_ssl_certs=True,
log_file='pyvcloud.log',
log_requests=True,
log_headers=True,
log_bodies=True)
client.set_highest_supported_version()
client.set_credentials(AccesTokenLogin(secrets['sc2_username'],
secrets['sc2_org'],
secrets['sc2_api_token']))

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant