Skip to content

OAuth user creation might be broken #1583

@manu2107el

Description

@manu2107el

Describe the Bug

I have a brand new docker compose stack and i wanted to set up authentication via my authentik setup.
so far so good it worked great with user accounts that already existed.

But when i log in with a user that doesn't have a karakeep account i get an application error:

Application error: a server-side exception has occurred (see the server logs for more information).

Digest: 4237581454

The logs:

karakeep-web          | d [TRPCError]: User settings not found
karakeep-web          |     at /app/apps/web/.next/server/chunks/6815.js:1:41820
karakeep-web          |     at async X.h.middlewares (/app/apps/web/.next/server/chunks/269.js:4:46337)
karakeep-web          |     at async F (/app/apps/web/.next/server/chunks/269.js:7:68)
karakeep-web          |     at async G (/app/apps/web/.next/server/chunks/269.js:4:45731)
karakeep-web          |     at async F (/app/apps/web/.next/server/chunks/269.js:7:68)
karakeep-web          |     at async F (/app/apps/web/.next/server/chunks/269.js:7:68)
karakeep-web          |     at async F (/app/apps/web/.next/server/chunks/269.js:7:68)
karakeep-web          |     at async G (/app/apps/web/.next/server/chunks/269.js:4:46537)
karakeep-web          |     at async /app/apps/web/.next/server/chunks/269.js:7:5476
karakeep-web          |     at async Promise.all (index 1) {
karakeep-web          |   cause: undefined,
karakeep-web          |   code: 'NOT_FOUND',
karakeep-web          |   digest: '4237581454'
karakeep-web          | }

the ui seems to indicate that the user was created after the login attempt and when first creating a user through karakeep UI and then linking it to oauth it works as expected.

Steps to Reproduce

  1. set up a new karakeep instance
  2. connect oauth
  3. attempt to log in with oauth user that is not already created in karakeep

Expected Behaviour

login should work as expected without server side error

Screenshots or Additional Context

Image

Device Details

No response

Exact Karakeep Version

0.25.0

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpri/highHigh priority issuestatus/approvedThis issue is ready to be implemented

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions