dlindahl / omniauth-cas

A CAS OmniAuth Strategy
MIT License
88 stars 79 forks source link

Support JASIG style extra attributes #12

Closed pencil closed 11 years ago

pencil commented 11 years ago

Some CAS server (like the JASIG's CAS Server, CASino, …) format the extra attributes a bit different. Example:

<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
  <cas:authenticationSuccess>
    <cas:user>psegel</cas:user>
    <cas:attributes>
      <cas:employeeid>54</cas:employeeid>
      <cas:first_name>P. Segel</cas:first_name>
      <!-- ... -->
    </cas:attributes>
  </cas:authenticationSuccess>
</cas:serviceResponse>

Links:

pencil commented 11 years ago

Would be awesome if you could merge this and release a new version of the gem :+1:

dlindahl commented 11 years ago

I don't really have the time to verify these changes so I'm just going to take your word for it :stuck_out_tongue: