jsumners / hapi-cas

A Hapi framework plugin to provide authentication via servers implementing Apereo's CAS protocol
5 stars 3 forks source link

Save CAS return for client processing #4

Closed mpmeyer closed 8 years ago

mpmeyer commented 8 years ago

Since some CAS servers provide extra attributes in an unsupported manner, save the CAS result for client processing.

Unsupported extra attribute user_id is provided:

<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
<cas:authenticationSuccess>
  <cas:user>myusername</cas:user>
  <user_id>123</user_id>
</cas:authenticationSuccess>
</cas:serviceResponse>

Save the CAS result into request.session.raw_cas:

{ user: 'myusername',
  user_id: '123' }

Create new pr to develop, closed https://github.com/jsumners/hapi-cas/pull/3

jsumners commented 8 years ago

Thank you for the work. I'll publish a new release this evening.

jsumners commented 8 years ago

Thanks again @mpmeyer. Release 0.4.0 has been published.