Skip to content

[Bug] OIDC error not parsed correctly / Rauthy incompatible #369

@daniel-tp

Description

@daniel-tp

Gokapi Version

v2.2.2

Operating System / Deployment

Docker (Official Image)

Storage Backend

S3 Compatible (AWS, Minio, etc.)

Database

SQLite

Steps to Reproduce

  1. Setup Rauthy as OIDC Provider
  2. Try to Login
  3. Get "401 Unauthorized login_required" from Rauthy.

Additional Context

I am not 100% sure if this is an issue here or with Rauthy, but when trying to login to Gokapi, you get an immediate 401 with Rauthy. If you remove prompt=none from the request URL or set prompt=consent it works fine.

This is the area of the code in Rauthy where my understanding is it only allows prompt=none if a session already exists.

https://github.com/sebadob/rauthy/blob/d7c4b9c0818ae4fe4d84559cc908b80bea9b7ea4/src/api/src/oidc.rs#L147-L157

Relevant Logs

Before submitting

  • I have removed sensitive information (API keys, passwords) from my logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions