go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.11k stars 5.49k forks source link

OAuth2 Provider authentication requires keyword 'token'. Is there a way to remove this requirement? #32161

Open aenagy opened 1 month ago

aenagy commented 1 month ago

Feature Description

The OAuth2 Provider documentation (https://docs.gitea.com/development/api-usage#oauth2-provider) states that the keyword 'token' is required in the Authorization header and this is required due to historical reasons. Is there an easy/simple way to remove this requirement, e.g. edit 'app.ini'? If not can this be added?

I'm working with a vendor supplied application that isn't designed specifically to work with Gitea but is designed to work with GitHub, GitLab and BitBucket and I have been able to get it work work without problems with GitHub.com Server Enteprise.

Screenshots

No response

lunny commented 1 month ago

Use bearer instead of token is also supported.