Url encode http header values in Shibboleth SP

Martin Mortensen martin.mortensen at adm.ku.dk
Thu Nov 17 14:44:04 EST 2016


I have setup Shibboleth SP on linux with Apache 2.4 and switched on http 
headers for an application that can get the user id, username and 
attributes via http headers. The application is Graylog 2.1.2 with 
add-on graylog plugin auth sso.

It works well - but! - application doesnt understand utf-8 header values 
- as its a breach of the HTTP/1.1 RFC and is not well supported in browsers.
They could understand the values if they were url-encoded - but I cant 
find anything for encoding the attributes in any way - only decoding.
I cant find a way for Apache to url-encode the header values either - I 
guess its never come up, since http headers only really support us-ascii 
- and the RFC states that you should use mime encoding (RFC2047 
encoding) if you wish to use data outside us-ascii charset.

Is it possible to url-encode the http headers?

-- 

Martin R Mortensen
Linux Specialist

Københavns Universitet
Koncern-it
Nørregade 10, postboks 2177
1017 København K

MOB 20 57 17 67
TEL 35 32 29 63

martin.mortensen at adm.ku.dk
http://www.it.ku.dk/



More information about the users mailing list