mirror of https://github.com/dapr/docs.git
doc: oauth middleware pathFilter
Signed-off-by: nelson.parente <nelson_parente@live.com.pt>
This commit is contained in:
parent
b2fdd34505
commit
24edb5c285
|
|
@ -36,6 +36,8 @@ spec:
|
||||||
value: "authorization"
|
value: "authorization"
|
||||||
- name: forceHTTPS
|
- name: forceHTTPS
|
||||||
value: "false"
|
value: "false"
|
||||||
|
- name: pathFilter
|
||||||
|
value: ".*/users/.*"
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% alert title="Warning" color="warning" %}}
|
{{% alert title="Warning" color="warning" %}}
|
||||||
|
|
@ -54,6 +56,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
|
||||||
| redirectURL | The URL of your web application that the authorization server should redirect to once the user has authenticated | `"https://myapp.com"`
|
| redirectURL | The URL of your web application that the authorization server should redirect to once the user has authenticated | `"https://myapp.com"`
|
||||||
| authHeaderName | The authorization header name to forward to your application | `"authorization"`
|
| authHeaderName | The authorization header name to forward to your application | `"authorization"`
|
||||||
| forceHTTPS | If true, enforces the use of TLS/SSL | `"true"`,`"false"` |
|
| forceHTTPS | If true, enforces the use of TLS/SSL | `"true"`,`"false"` |
|
||||||
|
| pathFilter | Applies the middleware only to requests matching the given path pattern | `".*/users/.*"`
|
||||||
|
|
||||||
## Dapr configuration
|
## Dapr configuration
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ spec:
|
||||||
value: "https://accounts.google.com/o/oauth2/token"
|
value: "https://accounts.google.com/o/oauth2/token"
|
||||||
- name: headerName
|
- name: headerName
|
||||||
value: "authorization"
|
value: "authorization"
|
||||||
|
- name: pathFilter
|
||||||
|
value: ".*/users/.*"
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% alert title="Warning" color="warning" %}}
|
{{% alert title="Warning" color="warning" %}}
|
||||||
|
|
@ -47,6 +49,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
|
||||||
| headerName | The authorization header name to forward to your application | `"authorization"`
|
| headerName | The authorization header name to forward to your application | `"authorization"`
|
||||||
| endpointParamsQuery | Specifies additional parameters for requests to the token endpoint | `true`
|
| endpointParamsQuery | Specifies additional parameters for requests to the token endpoint | `true`
|
||||||
| authStyle | Optionally specifies how the endpoint wants the client ID & client secret sent. See the table of possible values below | `0`
|
| authStyle | Optionally specifies how the endpoint wants the client ID & client secret sent. See the table of possible values below | `0`
|
||||||
|
| pathFilter | Applies the middleware only to requests matching the given path pattern | `".*/users/.*"`
|
||||||
|
|
||||||
### Possible values for `authStyle`
|
### Possible values for `authStyle`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue