Skip to content

Commit

Permalink
minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
leleuj committed Oct 31, 2023
1 parent fa494f5 commit 2a38331
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ It's based on the **[pac4j security engine](https://github.com/pac4j/pac4j)**. I

| JDK | Play version | pac4j version | play-pac4j version | Modules (Java & Scala) | Usage of Lombok | Status |
|------|--------------|---------------|--------------------|-------------------------------------------------|-----------------|------------------|
| 17 | 2.9 | 6.x | 12.0.x-PLAY2.9 | play-pac4j_2.12 play-pac4j_2.13 | Yes | In development |
| 17 | 2.8 | 6.x | 12.0.x-PLAY2.8 | play-pac4j_2.12 play-pac4j_2.13 | Yes | In development |
| 11 | 2.8 | 5.x | 11.0.x-PLAY2.8 | play-pac4j_2.12 play-pac4j_2.13 | No | Production ready |
| 11 | 2.8 | 4.x | 10.x | play-pac4j_2.12 play-pac4j_2.13 | No | Production ready |
Expand Down
2 changes: 1 addition & 1 deletion play-pac4j_2.13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.pac4j</groupId>
<artifactId>play-pac4j-parent</artifactId>
<version>12.0.0-PLAY2.9</version>
<version>12.0.0-PLAY2.9-SNAPSHOT</version>
</parent>

<artifactId>play-pac4j_2.13</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion play-pac4j_3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.pac4j</groupId>
<artifactId>play-pac4j-parent</artifactId>
<version>12.0.0-PLAY2.9</version>
<version>12.0.0-PLAY2.9-SNAPSHOT</version>
</parent>

<artifactId>play-pac4j_3</artifactId>
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<artifactId>play-pac4j-parent</artifactId>
<packaging>pom</packaging>
<name>pac4j parent for Play</name>
<version>12.0.0-PLAY2.9</version>
<version>12.0.0-PLAY2.9-SNAPSHOT</version>
<url>https://github.com/pac4j/play-pac4j</url>

<licenses>
Expand Down Expand Up @@ -62,7 +62,7 @@
</repositories>

<properties>
<pac4j.version>6.0.0-RC8</pac4j.version>
<pac4j.version>6.0.0-RC10-SNAPSHOT</pac4j.version>
<play.version>2.9.0</play.version>
<java.version>17</java.version>
<guice.version>6.0.0</guice.version>
Expand All @@ -87,6 +87,12 @@
<groupId>org.pac4j</groupId>
<artifactId>pac4j-core</artifactId>
<version>${pac4j.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
Expand Down
8 changes: 6 additions & 2 deletions shared/src/main/java/org/pac4j/play/PlayWebContext.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.pac4j.play;

import java.util.*;

import org.pac4j.core.context.Cookie;
import org.pac4j.core.context.WebContext;
import org.pac4j.core.context.session.SessionStore;
Expand All @@ -20,6 +18,7 @@

import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.*;

/**
* <p>This class is the web context for Play (used both for Java and Scala).</p>
Expand Down Expand Up @@ -237,6 +236,11 @@ public String getRequestContent() {
return requestContent;
}

@Override
public Optional<String> getQueryString() {
return Optional.ofNullable(CommonHelper.substringAfter(javaRequest.uri(), "?"));
}

public Http.Session getNativeSession() {
return session;
}
Expand Down

0 comments on commit 2a38331

Please sign in to comment.