Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public abstract class AbstractUaaTokenProvider implements TokenProvider {

private static final ZoneId UTC = ZoneId.of("UTC");

private final ConcurrentMap<ConnectionContext, Mono<String>> accessTokens =
protected final ConcurrentMap<ConnectionContext, Mono<String>> accessTokens =
new ConcurrentHashMap<>(1);

private final ConcurrentMap<ConnectionContext, RefreshToken> refreshTokenStreams =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.cloudfoundry.reactor.tokenprovider;

import org.cloudfoundry.reactor.ConnectionContext;
import org.cloudfoundry.reactor.TokenProvider;
import org.immutables.value.Value;
import reactor.netty.http.client.HttpClientForm;
Expand All @@ -36,4 +37,9 @@ void tokenRequestTransformer(HttpClientRequest request, HttpClientForm form) {
.attr("response_type", "token");
}

@Override
public void invalidate(ConnectionContext connectionContext) {
this.accessTokens.remove(connectionContext);
}

}