Skip to content

Commit

Permalink
Update to Keycloak 19.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and jacekkow committed Jul 28, 2022
1 parent 479960d commit 8b93a7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,21 @@

<groupId>org.keycloak</groupId>
<artifactId>keycloak-protocol-cas</artifactId>
<version>18.0.2</version>
<version>19.0.0</version>
<name>Keycloak CAS Protocol</name>
<description />

<properties>
<keycloak.version>${project.version}</keycloak.version>
<apache.httpcomponents.version>4.5.13</apache.httpcomponents.version>
<jboss.logging.version>3.4.1.Final</jboss.logging.version>
<jboss.logging.tools.version>2.2.1.Final</jboss.logging.tools.version>
<junit.version>4.13.2</junit.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.outputTimestamp>1656367890</project.build.outputTimestamp>
<project.build.outputTimestamp>1658998363</project.build.outputTimestamp>
</properties>

<dependencies>
Expand All @@ -58,6 +59,12 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${apache.httpcomponents.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
Expand Down Expand Up @@ -129,7 +136,7 @@
<configuration>
<archive>
<manifestEntries>
<Dependencies>javax.xml.bind.api,org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,org.keycloak.keycloak-services,org.keycloak.keycloak-saml-core,org.keycloak.keycloak-saml-core-public</Dependencies>
<Dependencies>javax.xml.bind.api,org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,org.keycloak.keycloak-services,org.keycloak.keycloak-saml-core,org.keycloak.keycloak-saml-core-public,org.apache.httpcomponents.httpclient</Dependencies>
</manifestEntries>
</archive>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Response authenticated(AuthenticationSessionModel authSession, UserSessio
String service = authSession.getRedirectUri();
//TODO validate service

OAuth2Code codeData = new OAuth2Code(UUID.randomUUID(),
OAuth2Code codeData = new OAuth2Code(UUID.randomUUID().toString(),
Time.currentTime() + userSession.getRealm().getAccessCodeLifespan(),
null, null, authSession.getRedirectUri(), null, null);
String code = OAuth2CodeParser.persistCode(session, clientSession, codeData);
Expand Down

0 comments on commit 8b93a7b

Please sign in to comment.