mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-24 14:27:07 +00:00
Adding support for base_url for Okta api (#3316)
* Adding support for base_url for Okta api * addressing feedback suggestions, bringing back optional group query * updating docs * cleaning up the login method * clear out production flag if base_url is set * docs updates * docs updates
This commit is contained in:
@@ -87,8 +87,8 @@ Configuration is written to `auth/okta/config`.
|
||||
|
||||
### Connection parameters
|
||||
|
||||
* `organization` (string, required) - The Okta organization. This will be the first part of the url `https://XXX.okta.com` url.
|
||||
* `token` (string, optional) - The Okta API token. This is required to query Okta for user group membership. If this is not supplied only locally configured groups will be enabled. This can be generated from http://developer.okta.com/docs/api/getting_started/getting_a_token.html
|
||||
* `org_name` (string, required) - The Okta organization. This will be the first part of the url `https://XXX.okta.com` url.
|
||||
* `api_token` (string, optional) - The Okta API token. This is required to query Okta for user group membership. If this is not supplied only locally configured groups will be enabled. This can be generated from http://developer.okta.com/docs/api/getting_started/getting_a_token.html
|
||||
* `base_url` (string, optional) - The Okta url. Examples: `oktapreview.com`, The default is `okta.com`
|
||||
* `max_ttl` (string, optional) - Maximum duration after which authentication will be expired.
|
||||
Either number of seconds or in a format parsable by Go's [time.ParseDuration](https://golang.org/pkg/time/#ParseDuration)
|
||||
@@ -106,7 +106,7 @@ Use `vault path-help` for more details.
|
||||
|
||||
```
|
||||
$ vault write auth/okta/config \
|
||||
organization="XXXTest"
|
||||
org_name="XXXTest"
|
||||
...
|
||||
```
|
||||
|
||||
@@ -118,8 +118,8 @@ $ vault write auth/okta/config \
|
||||
|
||||
```
|
||||
$ vault write auth/okta/config base_url="oktapreview.com" \
|
||||
organization="dev-123456" \
|
||||
token="00KzlTNCqDf0enpQKYSAYUt88KHqXax6dT11xEZz_g"
|
||||
org_name="dev-123456" \
|
||||
api_token="00KzlTNCqDf0enpQKYSAYUt88KHqXax6dT11xEZz_g"
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user