Getting more attributes from CAS than just user id

前端 未结 5 1293
青春惊慌失措
青春惊慌失措 2021-01-04 04:29

I am using CAS with JDBC Authentication handler and was wondering is it possible to get the other attributes of principal object (for e.g. firstname, lastname) not just the

5条回答
  •  旧巷少年郎
    2021-01-04 05:06

    I just spent the last three days attempting to get CAS properly configured. One of the issues I encountered was that I had to explicitly instruct CAS to publish the properties. I did this by:

    1. opening https://localhost/cas/services
    2. going to the 'Manage Services' tab
    3. click 'edit' for each service
    4. highlight the properties you wish to publish
    5. click the save button

    FWIW, the other issue is that casServiceValidationSuccess.jsp does contain any code to pass the properties back in the response. I was looking for a solution to this when I found your question. I notice that you have rewritten your implementation.

提交回复
热议问题