summaryrefslogtreecommitdiffstats
path: root/routers/web/web.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-08-21 04:16:45 +0200
committerGitHub <noreply@github.com>2021-08-20 22:16:45 -0400
commit0bd58d61e547f482dd3c38a30fccb4c58caf2a67 (patch)
treefbc87f7c8d550db4d54fe930f98d92db0e4b901d /routers/web/web.go
parente9747de95242807a6319e146216575676de66f47 (diff)
downloadgitea-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.go1
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)