[Feature] Authentication Sources - OAuth2 - Add JWT and PKCE Support #7816

Open
opened 2025-11-02 07:37:41 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @ghost on GitHub (Sep 7, 2021).

Currently authentication sources for OAuth2 only support shared secrets (implicit flow), which is not recommended for security reasons. Recommend implementation of Private Key JWT and/or PKCE for OAuth2 authentication sources.

Originally created by @ghost on GitHub (Sep 7, 2021). Currently authentication sources for OAuth2 only support shared secrets (implicit flow), which is [not recommended for security reasons](https://oauth.net/2/grant-types/implicit/). Recommend implementation of Private Key JWT and/or [PKCE](https://developer.okta.com/blog/2019/08/22/okta-authjs-pkce) for OAuth2 authentication sources.
Author
Owner

@zeripath commented on GitHub (Sep 7, 2021):

This already exists.

@zeripath commented on GitHub (Sep 7, 2021): This already exists.
Author
Owner

@ghost commented on GitHub (Sep 7, 2021):

Does it? As far as I can see the latest release only supports client/server secrets for OAuth, which is implicit flow. You're probably thinking of OAuth providers (not sources), which Gitea does support Private Key JWT and PKCE for that.

@ghost commented on GitHub (Sep 7, 2021): Does it? As far as I can see the latest release only supports client/server secrets for OAuth, which is implicit flow. You're probably thinking of OAuth providers (not sources), which Gitea does support Private Key JWT and PKCE for that.
Author
Owner

@techknowlogick commented on GitHub (Sep 7, 2021):

I've re-opened this, but it may require some changes in https://github.com/markbates/goth upstream before we can support it.

@techknowlogick commented on GitHub (Sep 7, 2021): I've re-opened this, but it may require some changes in https://github.com/markbates/goth upstream before we can support it.
Author
Owner

@NexZhu commented on GitHub (May 23, 2024):

@techknowlogick Is this supported now?

@NexZhu commented on GitHub (May 23, 2024): @techknowlogick Is this supported now?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7816