Retrive password
Well it doesn't tell you how to save the password, but it shows you how to get the password.
the full post is here, http://community.bonitasoft.com/answers/ldap-auth-bonita-bpm-community#node-24997
The lines you're probably looking for are:
final String userName = String.valueOf(credentials.get(AuthenticationConstants.BASIC_USERNAME));
Again though, I would recommend doing authentication, getting the token and then use the token, not saved in a variable uid and password for security reasons.
Anyway hope you succeed, regards
Hi Vidya,
i suspect this is for security, there should be no way of retrieving an password.
You should create your own, administrative, Process for resetting a password. But definitely not retrieving.
I must admit I would have thought there would be an inbuilt "I've forgotten my password" link on the login screen but there isn't.
In this case I would have an external HTML application do a REST call to your own service process that sends an email to the registered user like many web sites do,
regards Seán
Comments
yes trying to do the same ... using token's thanku soo much
Hi Sean , As the getPassword api is deprecated , Is there any alternative for this api ?
@subratkumar
The code above doesn't use the getPassword api, so it should work without issue for now or into the future...
regards