Skip to content

[BUG] #887

Closed
Closed

Description

@temperance447

Describe the Bug

on latest ghcr.io/tinyauthapp/tinyauth:nightly got

ERR internal/controller/context_controller.go:107 > Failed to create user context from request error="user context not found" stream=app

and ui and redirect not work, work only path.allow

How to Reproduce

Expected Behavior

ui and redirects

Additional Context

No response

Logs

No response

Operating System

No response

Browser

No response

Tinyauth Version

No response

Docker Version (if applicable)

No response

Human Written Confirmation

  • I confirm this issue was written by me and not generated by an LLM or AI assistant.

Activity

  1. scottmckendry commented on May 21, 2026

    @scottmckendry
    Member

    Thanks for reporting @temperance447

    Should be fixed in the next nightly. Resolved by #888. Can you retest in ~4 hours when the new version is built and tagged?

  2. temperance447 commented on May 22, 2026

    @temperance447
    Author

    Thanks for reporting @temperance447

    Should be fixed in the next nightly. Resolved by #888. Can you retest in ~4 hours when the new version is built and tagged?

    Thanks.

    On the latest nightly-distroless everything started working perfectly.

  3. temperance447 commented on May 22, 2026

    @temperance447
    Author

    Hello again. same error when client_ip available

    2026-05-22T14:09:58Z DBG internal/controller/proxy_controller.go:163 > Failed to create user context from request, treating as unauthenticated error="user context not found" stream=app
    
    2026-05-22T14:09:58Z INF internal/middleware/zerolog_middleware.go:67 > Request address=[****:****:****:****]:**** client_ip=*******  latency=63.390647ms method=GET path=/api/auth/traefik status=307 stream=http
    

    and path.allow not work with 307 error

  4. steveiliop56 commented on May 22, 2026

    @steveiliop56
    Member

    @temperance447 the logs you are sharing don't contain any useful information. This debug line just states it didn't find a user context, not a warning, not an error just an informational debug message. We cannot understand what's going wrong with two irrelevant log lines. Please share your setup, proxy config and the entire logs so as we can understand what's not working and resolve the issue.

  5. temperance447 commented on May 22, 2026

    @temperance447
    Author

    this error

    Image
  6. temperance447 commented on May 22, 2026

    @temperance447
    Author

    this error

    Image

    and previous error in file context_controller.go

    new error in file proxy_controller.go

    and used traefik with host X-Forwarded-For/X-Real-IP which setup client_ip

    if not host for change real/client ip all work

  7. steveiliop56 commented on May 23, 2026

    @steveiliop56
    Member

    @temperance447 what you are sharing is not an error. It's just Tinyauth informing you that it did not find a user context in the request and thus it's treating you as unauthenticated, you can ignore this error.

    As for the path.allow label, I cannot help you unless you share your setup. A log line is not useful if you do not share your docker-compose.yml (of the Tinyauth container) and the labels of the app in which ACLs are not working. Client IP is not needed for the path.allow label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions