Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jul 25, 2023
1 parent 6c7f277 commit fd2233c
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 329 deletions.
7 changes: 0 additions & 7 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Deltaspike modules-->
<dependency>
<groupId>de.cuioss.portal.core</groupId>
<artifactId>portal-deltaspike</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<!-- Test-->
<dependency>
<groupId>de.cuioss.portal.test</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* modules.
*
*/
public interface Redirector {
public interface OauthRedirector {

/**
* Redirect to another url. The url is expected to be complete and independent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import de.cuioss.portal.authentication.oauth.Oauth2Service;
import de.cuioss.portal.authentication.oauth.OauthAuthenticationException;
import de.cuioss.portal.authentication.oauth.OidcRpInitiatedLogoutParams;
import de.cuioss.portal.authentication.oauth.Redirector;
import de.cuioss.portal.authentication.oauth.OauthRedirector;
import de.cuioss.portal.authentication.oauth.Token;
import de.cuioss.tools.collect.CollectionBuilder;
import de.cuioss.tools.logging.CuiLogger;
Expand Down Expand Up @@ -93,7 +93,7 @@ public class Oauth2AuthenticationFacadeImpl extends BaseAuthenticationFacade
private Provider<String> loginUrl;

@Inject
private Provider<Redirector> redirector;
private Provider<OauthRedirector> oauthRedirector;

@Inject
private Provider<HttpServletRequest> servletRequestProvider;
Expand Down Expand Up @@ -143,7 +143,7 @@ private void sendRedirect(final String scopes, final String idToken) {
try {
var retrieveUrl = retrieveOauth2RedirectUrl(scopes, idToken);
LOGGER.debug("Calling redirect to %s", retrieveUrl);
redirector.get().sendRedirect(retrieveUrl);
oauthRedirector.get().sendRedirect(retrieveUrl);
} catch (final IllegalStateException e) {
LOGGER.warn("Portal-146: Oauth2 sendRedirect failed", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import javax.enterprise.context.ApplicationScoped;

import de.cuioss.portal.authentication.oauth.Redirector;
import de.cuioss.portal.authentication.oauth.OauthRedirector;
import lombok.Getter;

@SuppressWarnings("javadoc")
@ApplicationScoped
public class RedirectorMock implements Redirector {
public class RedirectorMock implements OauthRedirector {

@Getter
private String redirectUrl;
Expand Down
1 change: 0 additions & 1 deletion modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@
<module>core</module>
<module>micro-profile</module>
<module>test</module>
<module>portal-deltaspike</module>
</modules>
</project>
26 changes: 0 additions & 26 deletions modules/portal-deltaspike/README.adoc

This file was deleted.

61 changes: 0 additions & 61 deletions modules/portal-deltaspike/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fd2233c

Please sign in to comment.