You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by of...@apache.org on 2020/07/31 12:27:16 UTC
[incubator-dlab] branch develop updated: Removed method to simply
inherit it.
This is an automated email from the ASF dual-hosted git repository.
ofuks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new d330f61 Removed method to simply inherit it.
d330f61 is described below
commit d330f61d332fa317885d95b9192c082c1373b6fe
Author: Oleh Fuks <ol...@gmail.com>
AuthorDate: Fri Jul 31 15:27:04 2020 +0300
Removed method to simply inherit it.
---
.../java/com/epam/dlab/backendapi/auth/KeycloakAuthenticator.java | 8 --------
1 file changed, 8 deletions(-)
diff --git a/services/self-service/src/main/java/com/epam/dlab/backendapi/auth/KeycloakAuthenticator.java b/services/self-service/src/main/java/com/epam/dlab/backendapi/auth/KeycloakAuthenticator.java
index d48b5e2..4b39290 100644
--- a/services/self-service/src/main/java/com/epam/dlab/backendapi/auth/KeycloakAuthenticator.java
+++ b/services/self-service/src/main/java/com/epam/dlab/backendapi/auth/KeycloakAuthenticator.java
@@ -22,13 +22,11 @@ package com.epam.dlab.backendapi.auth;
import com.epam.dlab.auth.UserInfo;
import de.ahus1.keycloak.dropwizard.AbstractKeycloakAuthenticator;
import de.ahus1.keycloak.dropwizard.KeycloakConfiguration;
-import io.dropwizard.auth.AuthenticationException;
import org.keycloak.KeycloakSecurityContext;
import org.keycloak.representations.AccessToken;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
-import java.util.Optional;
import static java.util.Collections.emptyList;
@@ -41,12 +39,6 @@ public class KeycloakAuthenticator extends AbstractKeycloakAuthenticator<UserInf
}
@Override
- public Optional<UserInfo> authenticate(HttpServletRequest request) throws AuthenticationException {
- return super.authenticate(request);
-
- }
-
- @Override
@SuppressWarnings("unchecked")
protected UserInfo prepareAuthentication(KeycloakSecurityContext keycloakSecurityContext,
HttpServletRequest httpServletRequest,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org