Hello, I would like to clarify some things that I didn't say in the message above. First of all. We were using MongoDB the way is shown for four years, and it never happened something like this. That is why I decided to initiate the conversation here. It is extremely rare that the only attribute it's not reading is this particular one.
Second. I tried using a local defined json files to test and those ones reads perfectly the attribute (using "@class" instead of "_class" in those definitions). Diego On Monday, 4 September 2023 at 16:41:13 UTC-3 Diego Gimenez wrote: > Hello, > > I am having trouble with reading the specific attribute of > multifactorPolicy when using CAS with MongoDB as my Service Registry > database. There are two problems, but the main one is that all the > attributes at the registered services are perfectly understood by CAS, > except the multifactorPolicy attribute. The question is: Is it possible > that CAS has a problem with multifactorPolicy attribute being read from > MongoDB? > I tried using other attributes such as attributeReleasePolicy and it > didn't have any problem reading it, the test were made using a Groovy > script that prints all the attributes the registered service has. > > The other problem is that when I use the definition provided by CAS > documentation of a service, it defines an attribute named "@class", the > problem with this is that if I define a service this way, CAS does not > understand the class this registry belongs to, but when I define it with > "_class" and the same value (org.apereo.cas.services.CasRegisteredService) > it works and CAS can understand it. I did some research and I didn't find > anything that can tell me why this happens. If you know anything and can > tell or have an insight of what might be happening would be much > appreciated. > > Diego > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/94189c6d-1f5c-494f-a736-b2efd64f539dn%40apereo.org.
