Skip to content

Commit

Permalink
Merge pull request #3 from ngandhy/revert-2-master
Browse files Browse the repository at this point in the history
Revert "added server_port to callback url"
  • Loading branch information
ngandhy committed Apr 21, 2019
2 parents adda256 + ec4e587 commit 630f901
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions access.lua
Expand Up @@ -14,10 +14,9 @@ local token_secret = ngx.var.ngo_token_secret
local domain = ngx.var.ngo_domain
local cb_scheme = ngx.var.ngo_callback_scheme or scheme
local cb_server_name = ngx.var.ngo_callback_host or ngx.var.server_name
local cb_server_port = ngx.var.server_port
local cb_uri = ngx.var.ngo_callback_uri or "/_oauth"
local cb_url = cb_scheme .. "://" .. cb_server_name .. ":" .. cb_server_port .. cb_uri
local redirect_url = cb_scheme .. "://" .. cb_server_name .. ":" .. cb_server_port .. ngx.var.request_uri
local cb_url = cb_scheme .. "://" .. cb_server_name .. cb_uri
local redirect_url = cb_scheme .. "://" .. cb_server_name .. ngx.var.request_uri
local signout_uri = ngx.var.ngo_signout_uri or "/_signout"
local extra_validity = tonumber(ngx.var.ngo_extra_validity or "0")
local whitelist = ngx.var.ngo_whitelist or ""
Expand Down

0 comments on commit 630f901

Please sign in to comment.