Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
paas2-auth-sidecar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ASM
paas2-auth-sidecar
Commits
cc45179d
Commit
cc45179d
authored
Apr 05, 2017
by
Morten Knutsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add idp arg, include namespace in uri and encode query params.
parent
7d4d023f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lua/auth.lua
lua/auth.lua
+5
-1
nginx/nginx.conf
nginx/nginx.conf
+1
-0
No files found.
lua/auth.lua
View file @
cc45179d
...
...
@@ -3,5 +3,9 @@ if not returnTo then
returnTo
=
ngx
.
var
.
scheme
..
'://'
..
ngx
.
var
.
host
..
'/'
end
local
authServer
=
os.getenv
(
'auth_server'
)
local
idp
=
os.getenv
(
'idp'
)
local
namespace
=
os.getenv
(
'namespace'
)
local
action
=
ngx
.
var
.
action
ngx
.
redirect
(
'https://'
..
authServer
..
'/sp/'
..
action
..
'/?ReturnTo='
..
returnTo
)
local
params
=
ngx
.
encode_args
({
'ReturnTo'
=
returnTo
,
'Idp'
=
idp
})
ngx
.
redirect
(
'https://'
..
authServer
..
'/'
..
namespace
..
'/'
..
action
..
'?'
..
params
)
nginx/nginx.conf
View file @
cc45179d
...
...
@@ -7,6 +7,7 @@ env memcache;
env
feide_mode
;
env
auth_server
;
env
upstream_port
;
env
idp
;
events
{
worker_connections
768
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment