Last active
May 12, 2018 02:48
-
-
Save vishalnayak/5e8a209b7684fb6e6671e1c79265c9b5 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -e | |
set -x | |
vault auth-enable okta | |
vault write auth/okta/config org_name=dev-511503-admin api_token=redactedocUmeQVeazDbOPDnE9ZYPCoknUGFz-h base_url=oktapreview.com | |
vault write auth/okta/groups/testgroup policies=default | |
vault write auth/okta/users/vishalnayakv@gmail.com groups=testgroup policies=testpolicy | |
vault auth -method=okta username=vishalnayakv@gmail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment