java.lang.String 无法转换为类 org.pac4j.core.profile.UserProfile

问题描述 投票:0回答:2

使用打包 pac4j v5.4.6 的 CAS Apereo 6.6.8。

当用户使用 OIDC 委派针对 Azure AD 的身份验证后注销时,我收到强制转换异常。

在 org.pac4j.core.profile.ProfileManager 类中获取配置文件时:

final var profile = entry.getValue();

getValue 看起来是一个加密对象。

与 saveAll 方法中的调试语句相比,似乎以纯文本形式输出带有用户属性的实际配置文件对象。

这是此版本的已知问题吗?保存到会话的对象是否已加密,但在检索 UserProfile 对象时未解密?

cas pac4j
2个回答
0
投票

您可以复制/粘贴完整的堆栈跟踪异常吗?


0
投票

我在 google cas group 上也有帖子。

请参阅下面的堆栈跟踪。由于我添加了调试语句,行号可能与源代码不一致。

(ProfileManager.java:111)

是这个片段:

 final var profile = entry.getValue();

看起来entry.getValue()的值是这种格式,我认为这是问题所在:

key=AzureAdClient
value=rO0ABXNyAC1vcmcucGFjNGoub2lkYy5wcm9maWxlLmF6dXJlYWxbtQuQXp1cmVBZFByb2ZpbGWH1PK86L/yagwAAHhyACJvcmcucGFjNGoub2lkYy5wcm9maWxlLk9pZGNQcm9maWxl/0Q3wiOQlNoMAAB4cgAtb3JnLnBhYzRqLmNvcmUucHJvZmlsZS5qd3QuQWJzdHJhY3RKd3RQcm9maWxlqrHrwjxwWTkMAAB4cgAkb3JnLnBhYzRqLmNvcmUucHJvZmlsZS5Db21tb25Qcm9maWxl5j2Ybq91JMsMAAB4cgAnb3JnLnBhYzRqLmNvcmUucHJvZmlsZS5CYXNpY1VzZXJQcm9maWxlfS3iU+YsltIMAAB4cHQAK3g5cDJBYmZkdHZISm5mTExLTk9EeC1hZV9ERUhEWmg2azB1b3ZTN2FNbzRzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAYdwgAAAAgAAAAGHQAA3ZlcnQAAzEuMHQAA2Fpb3QATEFUUUF5LzhXQUFBQWtiYnI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ldESThDQUJzLnQABG5hbWV0AAxKdWFuIFBhZGlsbGF0AANleHBzcQB+ADF3CAAAAY7uTzCYeHQABmlwYWRkcnQACjQuNTYuMS4yNDZ0AANpYXRzcQB+ADF3CAAAAY7uE644eHQAC2ZhbWlseV9uYW1ldAAHUGFkaWxsYXhzcQB+AAc/QAAAAAAAAHcIAAAAEAAAAAB4dwEAc3IAEWphdmEudXRpbC5IYXNoU2V0ukSFlZa4tzQDAAB4cHcMAAAAED9AAAAAAAAAeHNxAH4AQHcMAAAAED9AAAAAAAAAeHQAEEF6dXJlQWRFbXBDbGllbnRweA==

堆栈跟踪:

2024-04-22 07:49:29,427 ERROR [org.springframework.boot.web.servlet.support.ErrorPageFilter] (default task-56) Forwarding to error page from request [/logout] due to exception [Exception thrown executing org.apereo.cas.web.flow.actions.DelegatedAuthenticationClientLogoutAction@56d11f00 in state 'terminateSession' of flow 'logout' -- action execution attributes were 'map[[empty]]']: org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.apereo.cas.web.flow.actions.DelegatedAuthenticationClientLogoutAction@56d11f00 in state 'terminateSession' of flow 'logout' -- action execution attributes were 'map[[empty]]'                                                                                                                                                                                              
    at deployment.cas.war//org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:62)                                                                                                      
    at deployment.cas.war//org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:77)                                                                                                       
    at deployment.cas.war//org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)                                                                                                        
    at deployment.cas.war//org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)                                                                                                      
    at deployment.cas.war//org.springframework.webflow.engine.ActionList.execute(ActionList.java:154)                                                                                                                
    at deployment.cas.war//org.springframework.webflow.engine.State.enter(State.java:193)                                                                                                                            
    at deployment.cas.war//org.springframework.webflow.engine.Flow.start(Flow.java:527)                                                                                                                              
    at deployment.cas.war//org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:368)                                                                                               
    at deployment.cas.war//org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:223)                                                                                               
    at deployment.cas.war//org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:139)                                                                                          
    at deployment.cas.war//org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:264)                                                                                            
    at deployment.cas.war//org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1070)                                                                                                 
    at deployment.cas.war//org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)                                                                                                   
    at deployment.cas.war//org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at deployment.cas.war//org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:503)                                                                                                                   
    at deployment.cas.war//org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)                                                                                                                   
    at [email protected]//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)                                                                                            
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)                                                                                  
    at deployment.cas.war//com.newco.cas.config.LanguageFilter.doFilter(LanguageFilter.java:75)                                                                                                                        
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  
    at deployment.cas.war//org.springframework.web.servlet.resource.ResourceUrlEncodingFilter.doFilter(ResourceUrlEncodingFilter.java:67)                                                                            
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  
    at deployment.cas.war//org.apereo.cas.web.support.AuthenticationCredentialsThreadLocalBinderClearingFilter.doFilter(AuthenticationCredentialsThreadLocalBinderClearingFilter.java:28)                            
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  
    at deployment.cas.war//org.apereo.cas.web.support.filters.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:401)                                                     
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  
    at deployment.cas.war//org.apereo.cas.web.support.filters.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:209)                                                                   
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)        
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  at deployment.cas.war//org.apereo.cas.web.support.filters.AddResponseHeadersFilter.doFilter(AddResponseHeadersFilter.java:62)                                                                                    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  
        at deployment.cas.war//com.newco.cas.config.LanguageFilter.doFilter(LanguageFilter.java:75)                                                                                                                        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  at deployment.cas.war//org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)                                                                                             at deployment.cas.war//org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:186)                                                                                                     at deployment.cas.war//org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)                                                                                       at deployment.cas.war//org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)                                                                                             at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  at deployment.cas.war//org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)                                                                                       at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)                                                                                               at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  at deployment.cas.war//org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)                                                                                              at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)                                                                                               at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)                                                                                  at deployment.cas.war//org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)                                                                    at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)                                                                                               at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)                                                                                                       at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.apereo.cas.logging.web.ThreadContextMDCServletFilter.doFilter(ThreadContextMDCServletFilter.java:104)
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.apereo.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:66)
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:126)
        at deployment.cas.war//org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:64)
        at deployment.cas.war//org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:101)
        at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
        at deployment.cas.war//org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:119)
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
        at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)                                              
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.springframework.security.web.context.SecurityContextHolderFilter.doFilterInternal(SecurityContextHolderFilter.java:64)
        at deployment.cas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at deployment.cas.war//org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
        at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at [email protected]//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at [email protected]//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
        at [email protected]//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at [email protected]//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at [email protected]//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
        at [email protected]//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
        at [email protected]//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at [email protected]//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at [email protected]//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        at [email protected]//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at [email protected]//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at [email protected]//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at [email protected]//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at [email protected]//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at [email protected]//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
        at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
        at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at [email protected]//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
        at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
        at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
        at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
        at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
        at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
        at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
        at [email protected]//io.undertow.server.Connectors.executeRootHandler(Connectors.java:370)
        at [email protected]//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
        at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassCastException: class java.lang.String cannot be cast to class org.pac4j.core.profile.UserProfile (java.lang.String is in module java.base of loader 'bootstrap'; org.pac4j.core.profile.UserProfile is in unnamed module of loader 'deployment.cas.war' @6d8747fc)
        at deployment.cas.war//org.pac4j.core.profile.ProfileManager.removeOrRenewExpiredProfiles(ProfileManager.java:111)
        at deployment.cas.war//org.pac4j.core.profile.ProfileManager.retrieveAll(ProfileManager.java:99)
        at deployment.cas.war//org.pac4j.core.profile.ProfileManager.getProfile(ProfileManager.java:54)
        at deployment.cas.war//org.apereo.cas.web.flow.actions.DelegatedAuthenticationClientLogoutAction.findCurrentProfile(DelegatedAuthenticationClientLogoutAction.java:101)
        at deployment.cas.war//org.apereo.cas.web.flow.actions.DelegatedAuthenticationClientLogoutAction.doPreExecute(DelegatedAuthenticationClientLogoutAction.java:48)
        at deployment.cas.war//org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:186)
        at deployment.cas.war//org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
         ... 125 more
© www.soinside.com 2019 - 2024. All rights reserved.