Blazor Server with OIDC Cookie Authentication behide IngressControler in Kubernetes #56098
Unanswered
alefcarlos
asked this question in
Q&A
Replies: 1 comment
-
|
Just to add more context, I have configured the And the log from nginx: I would like to use only WebSockets to avoid Essa é a�configuração gerada pelo IngressController: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm in trouble trying to use Blazor Server with authentication.
Running the application with authentication in the k8s cluster:
And I proxied the request using Fiddler:
But a I have another app without authentication and It works as expected:
It the same case as this one in StackOverflow: https://stackoverflow.com/questions/74402608/net-6-c-sharp-blazor-server-websocket-connection-failed-after-openid-auth
But I have already configured the annotions
I used big values to make sure it would be work rs
But it does not work :(
Does it has any other configuration do add ?
So, I tried it locally using nginx:
nginx.conf
http { server { listen 80; listen [::]:80; server_name localhost; proxy_buffers 8 128k; proxy_buffer_size 32k; large_client_header_buffers 16 128k; location / { proxy_pass http://app:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } }docker-compose.yml:
And it work as expected. The same application
Beta Was this translation helpful? Give feedback.
All reactions