Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Do not close auth client in password grant flow
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Oct 23, 2023
1 parent 060d8bc commit 098c174
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ public Uni<SecurityIdentity> customAuthentication(RoutingContext context, Identi
if (credentialsFromContext != null) {
OidcAuth oidcAuth = new OidcAuth(httpClient, clientId, clientSecret.get());
String jwtToken = oidcAuth.obtainAccessTokenPasswordGrant(credentialsFromContext.getLeft(), credentialsFromContext.getRight());
oidcAuth.close();
if (jwtToken != null) {
//If we manage to get a token from basic credentials, try to authenticate it using the fetched token using the identity provider manager
context.request().headers().set("Authorization", "Bearer " + jwtToken);
Expand Down

0 comments on commit 098c174

Please sign in to comment.