-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New auth_methods subdir for organization purposes (#255)
* New auth_methods subdir for organization purposes * Drop AWS/GCP secrets engines placeholder sections * Less redudant headings
- Loading branch information
Showing
10 changed files
with
67 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/usage/approle_auth_method.rst → docs/usage/auth_methods/approle.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Approle Auth Method | ||
=================== | ||
Approle | ||
======= | ||
|
||
Authentication | ||
-------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Auth Methods | ||
============ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
approle | ||
aws | ||
gcp | ||
github | ||
kubernetes | ||
ldap | ||
mfa | ||
token | ||
|
||
Authenticate to different auth backends | ||
--------------------------------------- | ||
|
||
.. code:: python | ||
# App ID | ||
client.auth_app_id('MY_APP_ID', 'MY_USER_ID') | ||
# GitHub | ||
client.auth_github('MY_GITHUB_TOKEN') | ||
# TLS | ||
client = Client(cert=('path/to/cert.pem', 'path/to/key.pem')) | ||
client.auth_tls() | ||
# Non-default mount point (available on all auth types) | ||
client.auth_userpass('MY_USERNAME', 'MY_PASSWORD', mount_point='CUSTOM_MOUNT_POINT') | ||
# Authenticating without changing to new token (available on all auth types) | ||
result = client.auth_github('MY_GITHUB_TOKEN', use_token=False) | ||
print(result['auth']['client_token']) # => u'NEW_TOKEN' | ||
# Custom or unsupported auth type | ||
params = { | ||
'username': 'MY_USERNAME', | ||
'password': 'MY_PASSWORD', | ||
'custom_param': 'MY_CUSTOM_PARAM', | ||
} | ||
result = client.auth('/v1/auth/CUSTOM_AUTH/login', json=params) | ||
# Logout | ||
client.logout() |
4 changes: 2 additions & 2 deletions
4
docs/usage/kubernetes_auth_method.rst → docs/usage/auth_methods/kubernetes.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Kubernetes Auth Backend | ||
======================= | ||
Kubernetes | ||
========== | ||
|
||
Authentication | ||
-------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
MFA Auth Method | ||
================ | ||
MFA | ||
=== | ||
|
||
Configure MFA Auth Method Settings | ||
----------------------------------- | ||
|
4 changes: 2 additions & 2 deletions
4
docs/usage/token_auth_method.rst → docs/usage/auth_methods/token.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Token Auth Method | ||
================= | ||
Token | ||
===== | ||
|
||
Authentication | ||
-------------- | ||
|