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

Do not close auth client in password grant flow #124

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading