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

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

Description

@marcusnh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions