diff --git a/conf/nginx.conf b/conf/nginx.conf index bb52ada..1e93213 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -75,7 +75,7 @@ http { token_endpoint = "http://localhost:9080yum/v1/oauth/v2/token", userinfo_endpoint = "http://localhost:9080yum/v1/oauth/v2/userinfo", --jwks_uri = "http://localhost:9080/jwks", -- 公钥端点(可选) - grant_types_supported = [ "authorization_code", "token", "refresh_token" ], -- 新增支持 refresh_token + grant_types_supported = { "authorization_code", "token", "refresh_token" }, -- 新增支持 refresh_token response_types_supported = { "code" }, subject_types_supported = { "public" }, id_token_signing_alg_values_supported = { "HS256" }, diff --git a/src/api/oauth/oauth.lua b/src/api/oauth/oauth.lua index e61ee90..15b78bd 100644 --- a/src/api/oauth/oauth.lua +++ b/src/api/oauth/oauth.lua @@ -13,6 +13,12 @@ local routes = { -------------------------------------------- ------------ OAuth2.0认证相关路由配置 --------- -------------------------------------------- + --回收token + { + paths = { "/yum/v1/oauth/v2/login" }, + methods = { "GET" }, + handler = oauthService.login, + }, --获取授权码 { paths = { "/yum/v1/oauth/v2/authorize" },