coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.47k stars 5.45k forks source link

Failed to verify OIDC token #6870

Closed typro33333 closed 4 days ago

typro33333 commented 5 days ago

Is there an existing issue for this?

OS/Web Information

Web Browser: Chrome Local OS: macOS Remote OS: Ubuntu Remote Architecture: amd64 code-server --version: 4.0.1

Steps to Reproduce

  1. I have setup oidc with authentik with CODER_HTTP_ADDRESS=0.0.0.0:3300 CODER_PG_CONNECTION_URL="" CODER_OIDC_ISSUER_URL="" CODER_OIDC_EMAIL_DOMAIN="**" CODER_OIDC_CLIENT_ID="**" CODER_OIDC_CLIENT_SECRET="" CODER_OIDC_SCOPES="openid,profile,email" CODER_VERBOSE="true" CODER_OIDC_SIGN_IN_TEXT="IAM"

Expected

When i login with oidc it have resolve url redirect to but it can not login.

Actual

malformed jwt: go-jose/go-jose: unexpected signature algorithm \"HS256\"; expected [\"RS256\"]"}

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

No response

typro33333 commented 4 days ago

I find this solution for this. That is my problem At authentik must signed me self key that will using RS256.