Skip to content

Commit

Permalink
Accidentally removed updateRequest method returned (#5843)
Browse files Browse the repository at this point in the history
* Accidentally ramoved updateRequest method returned
  • Loading branch information
Verdent authored Jan 12, 2023
1 parent 4e3b19a commit 1706a5e
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2022 Oracle and/or its affiliates.
* Copyright (c) 2018, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,6 +35,7 @@
import io.helidon.common.Errors;
import io.helidon.common.LazyValue;
import io.helidon.common.configurable.Resource;
import io.helidon.common.http.FormParams;
import io.helidon.common.http.Http;
import io.helidon.common.http.SetCookie;
import io.helidon.common.reactive.Single;
Expand Down Expand Up @@ -882,6 +883,22 @@ public URI introspectUri() {
return defaultTenant.get().introspectUri();
}

/**
* Update request that uses form params with authentication.
*
* @param type type of the request
* @param request request builder
* @param form form params builder
* @deprecated this will be removed without replacement
*/
@Deprecated(since = "2.5.5", forRemoval = true)
public void updateRequest(RequestType type, WebClientRequestBuilder request, FormParams.Builder form) {
if (type == RequestType.CODE_TO_TOKEN && tokenEndpointAuthentication() == ClientAuthentication.CLIENT_SECRET_POST) {
form.add("client_id", clientId());
form.add("client_secret", clientSecret());
}
}

Supplier<WebClient.Builder> webClientBuilderSupplier() {
return webClientBuilderSupplier;
}
Expand Down

0 comments on commit 1706a5e

Please sign in to comment.