Skip to content

Commit

Permalink
Nginx lua bearer check (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmi43 authored and qiujian16 committed Jan 24, 2018
1 parent a17598d commit 8ab45ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/opt/ibm/router/nginx/conf/oidc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ local function validate_access_token_or_exit()
local token = nil
if auth_header ~= nil then
ngx.log(ngx.DEBUG, "Authorization header found. Attempt to extract token.")
_, _, token = string.find(auth_header, "token=(.+)")
_, _, token = string.find(auth_header, "Bearer%s+(.+)")
else
ngx.log(ngx.DEBUG, "Authorization header not found.")
-- Presence of Authorization header overrides cookie method entirely.
Expand Down

0 comments on commit 8ab45ca

Please sign in to comment.