1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 17:14:27 +00:00
gitea/templates/user/auth
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
..
activate.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
change_passwd_inner.tmpl Set appropriate autocomplete attributes on password fields (#13078) 2020-10-09 10:32:30 +03:00
change_passwd.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
finalize_openid.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
forgot_passwd.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
grant_error.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
grant.tmpl Minimal OpenID Connect implementation (#14139) 2021-01-02 00:33:27 +08:00
link_account.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
prohibit_login.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
reset_passwd.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signin_inner.tmpl Set appropriate autocomplete attributes on password fields (#13078) 2020-10-09 10:32:30 +03:00
signin_navbar.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signin_openid.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signin.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signup_inner.tmpl unify layout between auth pages (#13547) 2020-11-13 21:46:40 -05:00
signup_openid_connect.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signup_openid_navbar.tmpl CSS navbar and color tweaks (#13609) 2020-11-26 19:33:28 +00:00
signup_openid_register.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
signup.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
twofa_scratch.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
twofa.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
u2f_error.tmpl Add support for FIDO U2F (#3971) 2018-05-19 17:12:37 +03:00
u2f.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00