Skip to content

Commit

Permalink
Merge pull request #124 from Apicurio/do-not-close-client
Browse files Browse the repository at this point in the history
Do not close auth client in password grant flow
  • Loading branch information
carlesarnal authored Oct 23, 2023
2 parents 060d8bc + 098c174 commit c5cb81f
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 c5cb81f

Please sign in to comment.