我正在尝试lua-resty-openidc
在 NGINX 服务器上进行配置。用户通过身份验证后,如何重定向回主页?当用户通过身份验证时,回调 url 正在从服务器获取代码、session_state 和其他参数。一旦用户通过身份验证,这会导致加载问题。用户返回的 url 类似于http://xyz.abc.com:8080/secured?code=32edkew2kjjjdf
https://github.com/pingidentity/lua-resty-openidc
我的配置如下所示。我想把用户带回http://xyz.abc.com:8080
. redirect_uri 应该是什么?
local opts = {
-- the full redirect URI must be protected by this script and becomes:
-- ngx.var.scheme.."://"..ngx.var.http_host..opts.redirect_uri_path
redirect_uri_path = "/secured",
discovery = "https://accounts.google.com/.well-known/openid-configuration",
client_id = "<client_id",
client_secret = "<client_secret"
--authorization_params = { hd="pingidentity.com" },
--scope = "openid email profile",
--iat_slack = 600,
}