drenda
drenda

Reputation: 6244

Spring Security passepartout password

I've a client/server app using Spring and more specifically Spring Security to manage authentication of clients. All works fine and this is the relevant part of the configuration:

<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>

My question if there is a way to authorize users that uses passepartout password. I mean, sometimes is confortable login in the software with a particular user using a super-admin password in order to see exaclty what the user see without change his password.

I think this behaviour is not contemplated from Spring; there is a way to achieve this behaviour?

Upvotes: 0

Views: 129

Answers (1)

Related Questions