Skip to content

Commit 15dbc7c

Browse files
authored
bearer-token-format: add az example, document enterprise options (#1796)
1 parent 9bbebe0 commit 15dbc7c

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

content/docs/reference/bearer-token-format.mdx

+19-3
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,19 @@ bearer_token_format: idp_access_token
6363
BEARER_TOKEN_FORMAT=idp_access_token
6464
```
6565

66+
#### Microsoft Entra
67+
68+
The `az` CLI can be used to get an access-token:
69+
70+
```bash
71+
curl -H "Authorization: $(az account get-access-token --query accessToken --output tsv)" https://example.localhost.pomerium.io
72+
```
73+
6674
### Options
6775

68-
- `default`
69-
- `idp_access_token`
70-
- `idp_identity_token`
76+
- `default`: Pass bearer tokens to upstream applications without interpreting them.
77+
- `idp_access_token`: The bearer token will be interpreted as an IdP-issued access token.
78+
- `idp_identity_token`: The bearer token will be interpreted as an IdP-issued identity token.
7179

7280
</TabItem>
7381
<TabItem value="Enterprise" label="Enterprise">
@@ -76,6 +84,14 @@ Set **Bearer Token Format** under **Proxy** settings in the Console:
7684

7785
![Set bearer token format in the Console](./img/global-settings/bearer-token-format.png)
7886

87+
### Options
88+
89+
- _Unset_: At the route level, use the global setting. At the global level, use "Default".
90+
- "Unknown": Same as "Default".
91+
- "Default": Pass bearer tokens to upstream applications without interpreting them.
92+
- "IDP Access Token": The bearer token will be interpreted as an IdP-issued access token.
93+
- "IDP Identity Token": The bearer token will be interpreted as an IdP-issued identity token.
94+
7995
</TabItem>
8096
<TabItem value="Kubernetes" label="Kubernetes">
8197

0 commit comments

Comments
 (0)