Skip to content

Allow SHIB_SESSION_ID as Shibboleth session header#20

Closed
ck-ws wants to merge 1 commit intomitcho:masterfrom
ck-ws:pr-shibsessionactive
Closed

Allow SHIB_SESSION_ID as Shibboleth session header#20
ck-ws wants to merge 1 commit intomitcho:masterfrom
ck-ws:pr-shibsessionactive

Conversation

@ck-ws
Copy link
Contributor

@ck-ws ck-ws commented May 6, 2016

this is used by some server implementations, e.g. lighttpd.
In lighttpd all SERVER-Variable names are uppercased and dashes are replaced by underscores.

If this isn't modified as in the patch below, I get the known redirect of death ;)

This also affects the normal attributes, but there it's possible to transform them to uppercase myself in the config (uid -> UID, isMemberOf -> ISMEMBEROF).

this is used by some server implementations, e.g. lighttpd
@dsXLII
Copy link

dsXLII commented May 7, 2016

Wonder if it would be worthwhile (and safe) to just make the whole header ID case-insensitive.

@ck-ws
Copy link
Contributor Author

ck-ws commented May 8, 2016

That's actually the way I implemented it in my own applications. HTTP Headers are case-insensitive, but the _SERVER variables aren't. But again the usual _SERVER variables like PHP_SELF, REDIRECT_URI, etc. are all uppercase by default.

Wasn't sure if this would be accepted, so I chose the less intrusive way, which would also be fine for me, since the other attributes can be configured.

@jrchamp
Copy link
Contributor

jrchamp commented May 11, 2016

#13 uses getenv() which is case-insensitive and should fix this issue. Plus, all the other benefits it was written to solve.

@ck-ws
Copy link
Contributor Author

ck-ws commented May 12, 2016

Haven't seen that. I would vote for #13, too!

@ck-ws ck-ws closed this May 12, 2016
@ck-ws ck-ws deleted the pr-shibsessionactive branch August 15, 2016 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants