1
0
Fork 0
forgejo/templates
Johnny Oskarsson a07e67d9cc
Minimal OpenID Connect implementation (#14139)
This is "minimal" in the sense that only the Authorization Code Flow
from OpenID Connect Core is implemented.  No discovery, no configuration
endpoint, and no user scope management.

OpenID Connect is an extension to the (already implemented) OAuth 2.0
protocol, and essentially an `id_token` JWT is added to the access token
endpoint response when using the Authorization Code Flow.  I also added
support for the "nonce" field since it is required to be used in the
id_token if the client decides to include it in its initial request.

In order to enable this extension an OAuth 2.0 scope containing
"openid" is needed. Other OAuth 2.0 requests should not be impacted by
this change.

This minimal implementation is enough to enable single sign-on (SSO)
for other sites, e.g. by using something like `mod_auth_openidc` to
only allow access to a CI server if a user has logged into Gitea.

Fixes: #1310

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2021-01-02 00:33:27 +08:00
..
admin Custom icons for OAuth sources (#14161) 2020-12-28 03:35:55 +01:00
base Fix manifest encoding (#14114) 2020-12-23 19:09:54 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Search and Diff CSS enhancements (#14050) 2020-12-20 13:00:03 -05:00
mail Add email notify for new release (#12463) 2020-08-23 16:03:18 +01:00
org gitea png to logo (#13974) 2020-12-18 20:17:27 -05:00
repo fix branch selector on new issue page (#14194) 2020-12-31 13:32:11 -05:00
shared Improve label and text wrapping (#14113) 2020-12-29 18:48:28 -05:00
status Style and template tweaks (#13828) 2020-12-04 12:18:37 +01:00
swagger Team dashboards (#14159) 2020-12-27 21:58:03 +02:00
user Minimal OpenID Connect implementation (#14139) 2021-01-02 00:33:27 +08:00
home.tmpl gitea png to logo (#13974) 2020-12-18 20:17:27 -05:00
install.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
post-install.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00