Hi Fernando, Have you look into *Rest Authentication*? https://apereo.github.io/cas/6.1.x/installation/Rest-Authentication.html
*> encode it and then send it to an external service of mine that is responsible for validating and to obtain the information of the user to my database* What language is the *external service* written in? If it is PHP I got a sample for you: https://github.com/NgSekLong/SelectUrCAS/blob/master/source/authentication/rest/index.php otherwise you can also based on the sample to make your own external service. Basically you want to add the following to your cas.properties / cas.yml *cas.authn.rest: uri: http://yourcompany.rest.external.server/somethingsomething* And it should do what you want to achieve. If you decided to use rest authentication, your diagram will look something like this: [image: temp.png] <about:invalid#zClosurez> Seems like it should work. *Note: Some people using rest authentication have external service that cannot be modified, in that case you will need to heavily modified CAS, which would be another topic and might take a lot more time.* See if the above can help you... Cheer! - Andy -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/5ada5d63-7d92-4984-828c-d74524194d4b%40apereo.org.