Have to reauthorize OAuth on every login for public clients #14217

Closed
opened 2025-11-02 11:06:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @jimafisk on GitHub (Mar 4, 2025).

Description

There was an update to the OAuth workflow that requires public clients to click "Authorize Application" every time they login: https://github.com/go-gitea/gitea/issues/25061

In reading the referenced spec (https://datatracker.ietf.org/doc/html/rfc8252#section-8.6) I noticed it says:

Measures such as claimed "https" scheme redirects MAY be accepted by authorization servers as identity proof.

I assume that means you shouldn't have to do this if using SSL/TLS in your redirect URI? It would be nice to not force our users to re-authorize every time they login. Thanks!

Gitea Version

1.23.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

I'm using a binary from the official releases, run with systemd (no docker).

Database

SQLite

Originally created by @jimafisk on GitHub (Mar 4, 2025). ### Description There was an update to the OAuth workflow that requires public clients to click "Authorize Application" every time they login: https://github.com/go-gitea/gitea/issues/25061 In reading the referenced spec (https://datatracker.ietf.org/doc/html/rfc8252#section-8.6) I noticed it says: > Measures such as claimed "https" scheme redirects MAY be accepted by authorization servers as identity proof. I assume that means you shouldn't have to do this if using SSL/TLS in your redirect URI? It would be nice to not force our users to re-authorize every time they login. Thanks! ### Gitea Version 1.23.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![Image](https://github.com/user-attachments/assets/a128ca23-c7e0-40be-8331-49cd7018f0e8) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? I'm using a binary from the official releases, run with systemd (no docker). ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 11:06:43 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Mar 4, 2025):

Have you tried this option?

Image

@wxiaoguang commented on GitHub (Mar 4, 2025): Have you tried this option? ![Image](https://github.com/user-attachments/assets/e458694c-9552-41e3-b956-dfbd3296d2b2)
Author
Owner

@jimafisk commented on GitHub (Mar 4, 2025):

Oh jeeze, sorry I missed that! This is exactly what I wanted @wxiaoguang. I just tested and it works perfectly 👌 . Thank you!!

@jimafisk commented on GitHub (Mar 4, 2025): Oh jeeze, sorry I missed that! This is exactly what I wanted @wxiaoguang. I just tested and it works perfectly 👌 . Thank you!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14217