Skip to content
Discussion options

You must be logged in to vote

The error "Redirect URI not trusted" means the exact string Gitea passes in the redirect_uri query parameter during the /authorize handshake does not match any entry in TINYAUTH_OIDC_CLIENTS_GITEA_TRUSTEDREDIRECTURIS.

Here is how to find the exact rejected URI, why it happens with Gitea, and how to fix it:


1. How to find the exact URI Gitea is sending

You can see the exact URI immediately without checking server logs:

  1. Open Gitea in your browser and click the TinyAuth login button.
  2. When the Tinyauth error page appears ("The provided redirect URI is not trusted"), look at your browser's Address Bar (URL).
  3. The URL is calling Tinyauth's /authorize endpoint:
    https://auth.mysite.com/authorize…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@stevenkain
Comment options

Answer selected by stevenkain
Comment options

You must be logged in to vote
0 replies
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
2 participants