Getting more attributes from CAS than just user id

前端 未结 5 1269
青春惊慌失措
青春惊慌失措 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 04:49

    In addition to the answer provided by @xiongjiabin if you are using CAS v4+ you probably want to use assertion.primaryAuthentication instead of assertion.chainedAuthentications in casServiceValidationSuccess.jsp:

    
        
            ${fn:escapeXml(attr.value)}**
        
    
    

    If you do use assertion.chainedAuthentications with CAS v4+ then the serviceRegistryDao list of allowedAttributes will be ignored and all attributes will be returned.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题