Skip to content

Commit

Permalink
Create userpass.rst (#775)
Browse files Browse the repository at this point in the history
* Create userpass.rst

* add userpass to toctree

* header nit

---------

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
  • Loading branch information
aberenshtein and briantist committed Feb 19, 2023
1 parent 29cf9d0 commit d46c0b1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/usage/auth_methods/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Auth Methods
mfa
okta
token
userpass

Authenticate to different auth backends
---------------------------------------
Expand Down
19 changes: 19 additions & 0 deletions docs/usage/auth_methods/userpass.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Userpass
========

Authentication
--------------

:py:meth:`hvac.api.auth_methods.Userpass.login`

.. code:: python
import hvac
client = hvac.Client()
client.auth.userpass.login(
username='<some_username>',
password='<username_password>',
)

0 comments on commit d46c0b1

Please sign in to comment.