Act as an OAuth2/OIDC provider so third-party apps can authenticate users and call the API with delegated consent
#3204
-
State changed as build OD-8836 (17.1.0) is successful
-
OneDev
changed state to 'Closed' 2 weeks ago
Previous Value Current Value Open
Closed
| Type |
Enhancement
|
| Priority |
Major
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (1)
Summary
Allow OneDev to act as an OAuth2 authorization server (and optionally an OpenID Connect provider), so third-party applications can authenticate OneDev users and access the OneDev API on their behalf with explicit user consent. This is equivalent to what Gitea, Forgejo, GitHub and GitLab provide.
Current behavior
As far as I can tell:
Problem
Tools that integrate with a Git platform commonly offer "Sign in with " and then act on the user's behalf. Many libraries and products ship ready-made providers for GitHub and GitLab, and for Gitea and Forgejo through their OAuth2 support. Because OneDev exposes no standard OAuth2 endpoints, these tools cannot integrate with it without manual token handling or an extra identity provider in front.
Use cases:
Proposed solution
Add an OAuth2 authorization server to OneDev with the following.
Application registration
Authorization Code flow with PKCE (S256)
authorization_codeandrefresh_tokengrants.stateand strict redirect URI matching.Scopes mapped to OneDev permissions
Token management
Discovery and OIDC (optional but valuable)
/.well-known/oauth-authorization-server, RFC 8414)./.well-known/openid-configuration, a JWKS endpoint and a userinfo endpoint, so generic OIDC providers work out of the box.Security
Prior art
/login/oauth/authorize, token at/login/oauth/access_token), using Authorization Code with PKCE support.Acceptance criteria
Non-goals (initial version)
Alternatives considered