The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

User switching in Spring Security using CrowdUserDetails

Graham Bakay
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 26, 2023

I have Crowd integrated and working with with Spring Security. I'm looking to implement the "Switch User" functionality provided in Spring Security (via the SwitchUserFilter).

My app throws `java.lang.UnsupportedOperationException: Not giving you the password` when the filter attempts to call `getPassword()` on the UserDetails (CrowdUserDetails) object when trying to create a UsernamePasswordAuthenticationToken. The javadoc says this is to avoid disclosing the password.

Has anyone else been able to get user switching working? Would it be as simple as subclassing the CrowdUserDetails class and returning a nonce password?

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Tinker Fadoua
Community Champion
November 12, 2025

@Graham Bakay 

I guess you no longer need help since this is from 2023?

Best,

Fadoua

DEPLOYMENT TYPE
SERVER
VERSION
3.3.3
TAGS
AUG Leaders

Atlassian Community Events