Skip to content

Commit

Permalink
update to pac4j v6.0.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
leleuj committed Dec 8, 2023
1 parent 630bac4 commit 03c07e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</developers>

<properties>
<pac4j.version>6.0.0-RC10</pac4j.version>
<pac4j.version>6.0.0-SNAPSHOT</pac4j.version>
<spring.version>6.1.1</spring.version>
<java.version>17</java.version>
<pmdVersion>6.55.0</pmdVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package org.pac4j.springframework.context;

import lombok.val;
import org.pac4j.core.context.Cookie;
import org.pac4j.core.context.HttpConstants;
import org.pac4j.core.context.WebContext;
import org.pac4j.core.util.CommonHelper;
import org.springframework.http.HttpCookie;
import org.springframework.http.ResponseCookie;
import org.springframework.http.server.reactive.ServerHttpRequest;
Expand Down Expand Up @@ -162,15 +160,4 @@ public void addResponseCookie(final Cookie cookie) {
public String getPath() {
return request.getPath().value();
}

@Override
public Optional<String> getQueryString() {
var queryString = "";
for (val params : request.getQueryParams().entrySet()) {
for (val param : params.getValue()) {
queryString = CommonHelper.addParameter(queryString, params.getKey(), param);
}
}
return Optional.of(queryString);
}
}

0 comments on commit 03c07e5

Please sign in to comment.