Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Build with Maven
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.vscode
2 changes: 1 addition & 1 deletion cosmo-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>net.oneandone.cosmo</groupId>
<artifactId>cosmo-multimodule</artifactId>
<version>7.1.2-SNAPSHOT</version>
<version>8.0.0-SNAPSHOT</version>
</parent>

<artifactId>cosmo-api</artifactId>
Expand Down
7 changes: 6 additions & 1 deletion cosmo-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>net.oneandone.cosmo</groupId>
<artifactId>cosmo-multimodule</artifactId>
<version>7.1.2-SNAPSHOT</version>
<version>8.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cosmo-core</artifactId>
Expand All @@ -32,6 +32,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package org.unitedinternet.cosmo.acegisecurity.providers.ticket;

import java.util.Set;

import org.jspecify.annotations.Nullable;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.AuthenticationConverter;
import org.unitedinternet.cosmo.server.ServerUtils;

import jakarta.servlet.http.HttpServletRequest;

public class TicketAuthenticationConverter implements AuthenticationConverter {

private static final String SLASH = "/";

@Override
public @Nullable Authentication convert(HttpServletRequest httpRequest) {

Set<String> keys = ServerUtils.findTicketKeys(httpRequest);

if (!keys.isEmpty()) {
String path = httpRequest.getPathInfo();
if (path == null || path.isEmpty()) {
path = SLASH;
}
if (!path.equals(SLASH) && path.endsWith(SLASH)) {
path = path.substring(0, path.length() - 1);
}
return new TicketAuthenticationToken(path, keys);
}
return null;
}
}

This file was deleted.

Loading
Loading