Skip to content

How can I create a Vault Client() Instance by using Okta? #924

Discussion options

You must be logged in to vote

Oh just found it:

    client = hvac.Client(url = "http://vault.service.companydomain.qa:8200")

    password_prompt = 'Please enter your password for the Okta authentication backend: '
    okta_password = getpass(prompt=password_prompt)

    client.auth.okta.login(
        username='user@companydomain.com',
        password=okta_password,
    )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matanmarciano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant