OAuth with Zitadel is failing with "Error while refreshing user info:" #1454

Closed
opened 2023-04-02 07:29:54 +00:00 by vsviridov · 2 comments

Description

Hello,

I've configured my Vikunja instance to authenticate against Zitadel OIDC.

I've successfully configured other apps (Outline, Grafana) to authenticate and they have no problems doing so.

However when I tried Vikunja I'm receiving following error: "Error while refreshing user info:"

If I look in the network tab I see the request to /api/v1/user however it returns with a 401 and the body saying {"message":"missing or malformed jwt"}.

It does not seem to send an Authorization header or cookies.

It does get a JWT from the server (via /api/v1/auth/openid/zitadel/callback call) and stores it in the local storage.

Vikunja Frontend Version

v0.20.4

Vikunja API Version

v0.20.2

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description Hello, I've configured my Vikunja instance to authenticate against Zitadel OIDC. I've successfully configured other apps (Outline, Grafana) to authenticate and they have no problems doing so. However when I tried Vikunja I'm receiving following error: "Error while refreshing user info:" If I look in the network tab I see the request to `/api/v1/user` however it returns with a 401 and the body saying `{"message":"missing or malformed jwt"}`. It does not seem to send an `Authorization` header or cookies. It does get a JWT from the server (via `/api/v1/auth/openid/zitadel/callback` call) and stores it in the local storage. ### Vikunja Frontend Version v0.20.4 ### Vikunja API Version v0.20.2 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
vsviridov added the
kind/bug
label 2023-04-02 07:29:54 +00:00
Owner

Is this the issue you're hitting: https://github.com/go-vikunja/frontend/issues/109

If that's the case it should work in an older Firefox or Chrome.

Is this the issue you're hitting: https://github.com/go-vikunja/frontend/issues/109 If that's the case it should work in an older Firefox or Chrome.
Author

Indeed, looks like it's the same issue.

Indeed, looks like it's the same issue.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1454
No description provided.