Forum Discussion
mkrausem
2 years agoOccasional Contributor
Hi,
we use a script before we commit which need to be (manually) executed
def clearOAuth2AccessToken(def project)
{
def profiles = project.getAuthRepository().getEntryList()
profiles.each()
{
profile ->
if(profile.getClass() == OAuth2Profile)
{
log.info("Clear Access token in profile: " + profile.getName())
profile.setAccessToken(null)
profile.setAccessTokenIssuedTime(0)
}
}
}
Related Content
- 6 years ago
- 8 years ago
Recent Discussions
- 28 minutes ago