Skip to content
Discussion options

You must be logged in to vote

Hi @Warrior01017! I'm Dosu and I’m helping the Trilium team.

The "user invalid!" and 502 Bad Gateway errors with Authentik OAUTH in TriliumNext are most often caused by either missing user claims in the ID token or proxy misconfiguration.

First, make sure your Nginx Proxy Manager config increases buffer sizes—users have fixed 502 errors by setting proxy_buffers 16 16k; proxy_buffer_size 32k; proxy_busy_buffers_size 64k; in the location block for TriliumNext. This prevents "upstream sent too big header" errors when handling large OAUTH tokens source.

Next, double-check that your Authentik provider is set to include the openid profile email scopes and that "Include claims in id_token" is e…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Warrior01017
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant