修改配置文件中调用op端点时报错问题,oauth增加login接口,用于自己的登录页面使用
This commit is contained in:
parent
e75cbc7282
commit
b450ff0413
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user