mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
docs: fix code snippet copy for SAML auth method (#24619)
This commit is contained in:
parent
e7838a3594
commit
082d2a6412
1 changed files with 8 additions and 8 deletions
|
|
@ -75,8 +75,8 @@ management tool.
|
|||
|
||||
```shell-session
|
||||
$ vault write auth/saml/config \
|
||||
default_role=admin \
|
||||
idp_metadata_url=https://company.okta.com/app/abc123eb9xnIfzlaf697/sso/saml/metadata \
|
||||
default_role="admin" \
|
||||
idp_metadata_url="https://company.okta.com/app/abc123eb9xnIfzlaf697/sso/saml/metadata" \
|
||||
entity_id="https://my.vault/v1/auth/saml" \
|
||||
acs_urls="https://my.vault/v1/auth/saml/callback"
|
||||
```
|
||||
|
|
@ -85,10 +85,10 @@ management tool.
|
|||
|
||||
```shell-session
|
||||
$ vault write auth/saml/config \
|
||||
default_role=admin \
|
||||
idp_sso_url=https://company.okta.com/app/abc123eb9xnIfzlaf697/sso/saml \
|
||||
idp_entity_id=https://www.okta.com/abc123eb9xnIfzlaf697 \
|
||||
idp_cert=@path/to/cert.pem \
|
||||
default_role="admin" \
|
||||
idp_sso_url="https://company.okta.com/app/abc123eb9xnIfzlaf697/sso/saml" \
|
||||
idp_entity_id="https://www.okta.com/abc123eb9xnIfzlaf697" \
|
||||
idp_cert="@path/to/cert.pem" \
|
||||
entity_id="https://my.vault/v1/auth/saml" \
|
||||
acs_urls="https://my.vault/v1/auth/saml/callback"
|
||||
```
|
||||
|
|
@ -96,12 +96,12 @@ management tool.
|
|||
1. Create a named role:
|
||||
|
||||
```shell-session
|
||||
$ vault write auth/saml/role/admin \
|
||||
$ vault write auth/saml/role/admin \
|
||||
bound_subjects="*@hashicorp.com" \
|
||||
bound_subjects_type="glob" \
|
||||
token_policies="writer" \
|
||||
bound_attributes=group="admin" \
|
||||
ttl=1h
|
||||
ttl="1h"
|
||||
```
|
||||
|
||||
This role authorizes users that have a subject with an `@hashicorp.com` suffix and
|
||||
|
|
|
|||
Loading…
Reference in a new issue