Skip to content

Commit

Permalink
gateway: fix bearer token config format
Browse files Browse the repository at this point in the history
  • Loading branch information
multun committed Nov 21, 2023
1 parent b6a5938 commit 054b7f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/gateway_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ data:
username = "{{ $provider.username }}"
require_login = {{ $provider.require_login }}
{{- else if eq $provider.type "Bearer" }}
tokens = {
[auth.providers.tokens]
{{- range $key, $value := $provider.tokens }}
"{{ $key }}" = "{{ $value }}",
"{{ $key }}" = "{{ $value }}"
{{- end }}
}
{{- else if eq $provider.type "Oidc" }}
issuer_url = "{{ $provider.issuer_url }}"
post_login_url = "{{ $provider.post_login_url }}"
Expand Down

0 comments on commit 054b7f6

Please sign in to comment.