Skip to content

Commit

Permalink
add requestScopes for token exchange (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawalec authored Jan 29, 2024
1 parent bd22228 commit 2288c7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/istio-authorizer/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ data:
original_token: {{ .tokenExchange.inject.headers.originalToken }}
exchanged_token: {{ .tokenExchange.inject.headers.exchangedToken }}
strip_bearer: {{ .tokenExchange.inject.headers.stripBearer }}
request_scopes: {{ .tokenExchange.requestScopes }}
{{- end }}
extraconfig.yaml: |
{{- with .Values.extraConfig }}
Expand Down
4 changes: 4 additions & 0 deletions charts/istio-authorizer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ tokenExchange:
##
stripBearer: false

# Describes what scopes should be requested for a new token
# One of: client | original_token
requestScopes: "original_token"

## ACP http client configuration
##
# httpClient:
Expand Down

0 comments on commit 2288c7c

Please sign in to comment.