Skip to content

Commit

Permalink
Merge pull request #14 from SolaceLabs/feature/shared-session-issue
Browse files Browse the repository at this point in the history
Fix for shared session issue
  • Loading branch information
HariRangarajan-Solace authored Sep 25, 2024
2 parents f48dc85 + 5c96c79 commit ed8006e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ep.asyncapi.tool.sap.is.converter.commons;

import com.solace.cloud.ep.designer.ApiClient;
import com.solace.cloud.ep.designer.Configuration;
import com.solace.cloud.ep.designer.auth.HttpBearerAuth;
import jakarta.servlet.http.HttpSession;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -18,7 +17,7 @@ public class ApiClientUtil {

public ApiClient initializeApiClient(final String epToken) {
if (StringUtils.hasText(epToken)) {
ApiClient apiClient = Configuration.getDefaultApiClient();
final ApiClient apiClient = new ApiClient();
apiClient.setBasePath(basePath);
HttpBearerAuth APIToken = (HttpBearerAuth) apiClient.getAuthentication("APIToken");
APIToken.setBearerToken(epToken);
Expand Down

0 comments on commit ed8006e

Please sign in to comment.