From 6851d8e991da37fa1570e0d9a935960f4d739f57 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Thu, 24 Aug 2023 09:52:29 +0200 Subject: [PATCH] No need to update credentials with tokens in interceptor. --- .../java/ch/cyberduck/core/oauth/OAuth2RequestInterceptor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/oauth/src/main/java/ch/cyberduck/core/oauth/OAuth2RequestInterceptor.java b/oauth/src/main/java/ch/cyberduck/core/oauth/OAuth2RequestInterceptor.java index 7a57dee2144..e2871e8a93d 100644 --- a/oauth/src/main/java/ch/cyberduck/core/oauth/OAuth2RequestInterceptor.java +++ b/oauth/src/main/java/ch/cyberduck/core/oauth/OAuth2RequestInterceptor.java @@ -19,7 +19,6 @@ import ch.cyberduck.core.HostPasswordStore; import ch.cyberduck.core.HostUrlProvider; import ch.cyberduck.core.LoginCallback; -import ch.cyberduck.core.LoginOptions; import ch.cyberduck.core.OAuthTokens; import ch.cyberduck.core.PasswordStoreFactory; import ch.cyberduck.core.Scheme; @@ -93,7 +92,6 @@ public OAuthTokens refresh(final OAuthTokens previous) throws BackgroundExceptio * @return Same tokens saved */ public OAuthTokens save(final OAuthTokens tokens) throws LocalAccessDeniedException { - host.getCredentials().withOauth(tokens).withSaved(new LoginOptions().keychain); if(log.isDebugEnabled()) { log.debug(String.format("Save new tokens %s for %s", tokens, host)); }