malliaridis commented on code in PR #3754:
URL: https://github.com/apache/solr/pull/3754#discussion_r2838616532
##########
solr/ui/src/commonMain/kotlin/org/apache/solr/ui/utils/HttpClientUtils.kt:
##########
@@ -79,3 +87,23 @@ fun getHttpClientWithCredentials(
}
}
}
+
+fun getHttpClientWithBearerTokens(
+ accessToken: String,
+ refreshToken: String? = null,
+ url: Url = Url("http://127.0.0.1:8983/"),
+ realm: String? = null,
+) = getDefaultClient(url) {
+ install(Auth) {
+ bearer {
+ loadTokens {
+ BearerTokens(accessToken, refreshToken)
+ }
+ refreshTokens {
+ TODO("Not implemented yet")
Review Comment:
Now that this PR has been merged, this should be addressed in the same
ticket but separate PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]