java - Spring Security 路路通密码

标签 java spring spring-security

我有一个客户端/服务器应用程序,使用 Spring,更具体地说,使用 Spring Security 来管理客户端的身份验证。 一切正常,这是配置的相关部分:

<security:authentication-manager id="authenticationManager">
    <security:authentication-provider>
        <security:password-encoder hash="md5" />
        <security:jdbc-user-service data-source-ref="dataSource" users-by-username-query="
          select username,password,attivo 
          from Operatore where username=?"

            authorities-by-username-query="
          select username,ruolo 
          from Operatore where username=? " />

    </security:authentication-provider>
</security:authentication-manager>

我的问题是否有一种方法可以授权使用 passepartout 密码的用户。 我的意思是,有时特定用户可以使用 super 管理员密码轻松登录软件,以便在不更改密码的情况下准确查看用户所看到的内容。

我认为 Spring 没有考虑到这种行为;有办法实现这种行为吗?

最佳答案

关于java - Spring Security 路路通密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33675029/

相关文章:

spring - 如何使用 spring security 2.0 在我的 JSP 页面中显示错误消息

json - JSON 序列化程序中的延迟加载错误

java - ResourceBundleMessageSource 解决错误

java - 如何读取Java中exec进程的输出?

java - 如何在 OSGi 中的不同包中扩展测试类

java - Build.gradle 给出 java.lang.NoClassDefFoundError

spring - 除了 jdbcTokenStore 之外,如何将 token 存储在数据库中?

java - http.antMatcher ("/**") .authorizeRequests().antMatchers ("/**") 中的 antMatcher ("/") 需要什么?

java - Android 项目无法识别外部库中的类

java - Tomcat,引用静态变量帮助生成wsdl