Commit 34a38dcf authored by Sigmund Augdal's avatar Sigmund Augdal

Export all feide attributes in a base64 encoded json blob in a header

This is useful to avoid problems related to attribute names with colon in them, or attribute values with comma in them etc
parent a865eaf8
Pipeline #1622 passed with stage
in 55 seconds
......@@ -91,6 +91,7 @@ function setFeideHeaders(feide_data)
ngx.req.set_header("Remote-User", values[0])
end
end
ngx.req.set_header("X-Feide-Attributes", ngx.encode_base64(cjson.encode(attributes)))
end
function clearHeaders()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment