Interface ConsumerTokenService
public interface ConsumerTokenService
Service to deal with OAuth consumer tokens
- Since:
- v3.11.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidremoveAllTokensForUsername(String username) Deletes all the consumer tokens for the given user.
-
Method Details
-
removeAllTokensForUsername
Deletes all the consumer tokens for the given user. This can be useful for cleaning-up tokens after a user is deleted or renamed, to avoid a new user being created with the same username and inheriting tokens that don't belong to her. This method will loop through all application links configured with outgoing oauth, and for each one will delete the tokens for the given user (if any).- Parameters:
username- a valid username.
-