rbCAS / CASino

CASino is a Ruby-based Single Sign-On solution supporting the CAS standard
MIT License
331 stars 189 forks source link

CASino not sending extra attributes at times #134

Open hirefront opened 9 years ago

hirefront commented 9 years ago

Hi,

In mi CAS client user model, I have cas_extra_attributes method for receiving these parameters from the server.

I have detected the following situation: Sometimes CASino is sending the roles (extra_attribute) as an empty array, and in the users DB the roles are there for sure.

I was wondering if this might be caused for one of these two:

  1. Problems with associated attributes in the user model (Such as roles, these are managed in a separate application)
  2. Problems with having multiple instances of the CAS server and clients
  3. Ticket expirations problems?

Any help would be amazing.

luxflux commented 9 years ago

So right now, I don't have any clue how this can happen. I saw several different configurations where the extra_attributes worked consistently well. The only difference was that there was always only one CAS server (CASino), maybe it was running multiple instances through mod_passenger but it was always running on only one server.

Could you provide us the configuration you are using? Maybe also the XMLs request and response of the client<->server communication of such an empty array response.

Is it always the same user(s)? Or is this random?