ditto-clients icon indicating copy to clipboard operation
ditto-clients copied to clipboard

Add support for Async JsonWebTokenSupplier

Open desislava-marinova opened this issue 4 years ago • 0 comments

Ditto currently supports access token authentication using only synchronous JsonWebTokenSupplier. Refresh token operation is supposed to be asynchronous one and it will be good if a support for asynchronous JsonWebTokenSupplier is provided, e.g. something like

public interface AsyncJsonWebTokenSupplier extends Supplier<CompletionStage<JsonWebToken>> {
  CompletionStage<JsonWebToken> get();
}

desislava-marinova avatar Nov 26 '19 07:11 desislava-marinova