com.atlassian.applinks.api.auth.oauth
Interface ConsumerTokenService
public interface ConsumerTokenService
Service to deal with OAuth consumer tokens
- Since:
- v3.11.0
removeAllTokensForUsername
void removeAllTokensForUsername(String username)
- 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.
Copyright © 2015 Atlassian. All rights reserved.