Okta: Issue with passing Auth token to K8s dashboard #165
-
I am using Okta, and I am able to successfully authenticate and access the kubernetes dashboard using traefik-oidc-auth. However, I do not seem to be passing the 'Authorization' header to the site. Here is my middleware config:
Am I missing something? Any help would be appreciated. I can provide my Traefik ingress if need be |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @chasty2, So can you try: Headers:
- Name: Authorization
Value: "Bearer {{ .accessToken }}" |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response! I am now seeing the correct header. While this doesn't resolve my issue, I can now see that the headers are working as intended. I think my issue is related to how I am routing to k8s dashboard, and how it forwards headers |
Beta Was this translation helpful? Give feedback.
Hi @chasty2,
I'am not a kubernetes expert but did you also try removin the escape sequence? I think this is not needed here. It's only needed when using traefik's yaml configuration directly (file-based) because it also supports some templating.
So can you try: