toyokazu/omniauth-shibboleth — pull request #4 by TiagoTT (2012-09-13 16:20:12+00:00)
Title: Making the user data fields mapping to Shibboleth variables configurable.

Hello!

I had to integrate an OSQA installation with our corporate Shibboleth authentication service and I used your module. Doing so I had to change the module's code to adjust the environment variable names, to suit my case. At the end I made these environment variable names configurable and this is the result.

I am not sure the changes in file "spec/omniauth/strategies/shibboleth_spec.rb" are correct, sorry about that. But the code I send you here is working fine for me and should work for everyone else.

I tried to keep compatibility with previous version by setting the default values of the new configuration variables to the old hardcoded values, except for the variable "uid_field" which was moved into the variable "fields" hash with key name "uid".

I have also changed the "README.md" to include an example for the new configuration.

Best regards.
Tiago