This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 845d5fa Fix oidc auth server url
845d5fa is described below
commit 845d5fa739e9bfeb7ce04375c817b4315775811e
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Wed Sep 14 17:26:37 2022 -0400
Fix oidc auth server url
---
.../src/main/java/org/apache/camel/karavan/service/AuthService.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/karavan-app/src/main/java/org/apache/camel/karavan/service/AuthService.java
b/karavan-app/src/main/java/org/apache/camel/karavan/service/AuthService.java
index 56c378a..3823081 100644
---
a/karavan-app/src/main/java/org/apache/camel/karavan/service/AuthService.java
+++
b/karavan-app/src/main/java/org/apache/camel/karavan/service/AuthService.java
@@ -21,9 +21,7 @@ import org.eclipse.microprofile.config.ConfigProvider;
import org.jboss.logging.Logger;
import javax.enterprise.context.ApplicationScoped;
-import javax.inject.Inject;
import java.net.MalformedURLException;
-import java.net.URL;
import java.util.Map;
@ApplicationScoped
@@ -36,7 +34,6 @@ public class AuthService {
}
public Map<String, String> getSsoConfig() throws MalformedURLException {
- URL netUrl = new
URL(ConfigProvider.getConfig().getValue("quarkus.oidc.auth-server-url",
String.class));
- return Map.of("url", netUrl.getProtocol() + "://" +
netUrl.getAuthority() + "/");
+ return Map.of("url",
ConfigProvider.getConfig().getValue("quarkus.oidc.auth-server-url",
String.class));
}
}