Skip to content

Commit

Permalink
fixed templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Oct 10, 2023
1 parent 1abbec9 commit cef48d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/templates/guacamole%v03.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
end

-- Protect this location and allow only one specific ELIXIR User
if (res.id_token.sub ~= "{{ owner }} and not user_service.file_exists(ngx.var.user_path .. res.id_token.sub)) then
if (res.id_token.sub ~= "{{ owner }}" and not user_service.file_exists(ngx.var.user_path .. res.id_token.sub)) then
ngx.exit(ngx.HTTP_FORBIDDEN)
end

ngx.req.set_header("X-Auth-Audience", res.id_token.aud)
ngx.req.set_header("X-Auth-Email", res.id_token.email)
ngx.req.set_header("X-Auth-ExpiresIn", res.id_token.exp)
Expand Down

0 comments on commit cef48d7

Please sign in to comment.