diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-08-21 04:16:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 22:16:45 -0400 |
commit | 0bd58d61e547f482dd3c38a30fccb4c58caf2a67 (patch) | |
tree | fbc87f7c8d550db4d54fe930f98d92db0e4b901d /routers/web/web.go | |
parent | e9747de95242807a6319e146216575676de66f47 (diff) | |
download | gitea-0bd58d61e547f482dd3c38a30fccb4c58caf2a67.tar.gz gitea-0bd58d61e547f482dd3c38a30fccb4c58caf2a67.zip |
Added introspection endpoint. (#16752)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/web/web.go')
-rw-r--r-- | routers/web/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index a47fd518ac..98395578f6 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -311,6 +311,7 @@ func RegisterRoutes(m *web.Route) { m.Get("/login/oauth/userinfo", ignSignInAndCsrf, user.InfoOAuth) m.Post("/login/oauth/access_token", CorsHandler(), bindIgnErr(forms.AccessTokenForm{}), ignSignInAndCsrf, user.AccessTokenOAuth) m.Get("/login/oauth/keys", ignSignInAndCsrf, user.OIDCKeys) + m.Post("/login/oauth/introspect", CorsHandler(), bindIgnErr(forms.IntrospectTokenForm{}), ignSignInAndCsrf, user.IntrospectOAuth) m.Group("/user/settings", func() { m.Get("", userSetting.Profile) |