Skip to content

Commit

Permalink
fix: Updated KC dependency to 22.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
desaintmartin committed Nov 29, 2023
1 parent 8b7dc82 commit be27d1c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
branches:
- "docker"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.8.5-jdk-11-slim AS build
FROM maven:3.8.5-openjdk-17-slim AS build

WORKDIR /home/app/src

Expand Down
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<artifactId>actions-token</artifactId>
<groupId>org.jboss.aerogear</groupId>
<packaging>jar</packaging>
<version>0.0.7</version>
<version>0.0.8</version>

<properties>
<java.version>11</java.version>
<keycloak.version>15.0.2</keycloak.version>
<version.compiler.maven.plugin>3.5.1</version.compiler.maven.plugin>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<java.version>17</java.version>
<keycloak.version>22.0.5</keycloak.version>
<version.compiler.maven.plugin>3.8.1</version.compiler.maven.plugin>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<gson.version>2.9.0</gson.version>
</properties>

Expand Down Expand Up @@ -96,4 +96,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public Response getActionToken(
ActionTokenRequest actionTokenRequest = null;
try {
Gson gson = new Gson();
actionTokenRequest = gson.fromJson(jsonString, ActionTokenRequest.class);
actionTokenRequest = gson.fromJson(jsonString, ActionTokenRequest.class);
} catch (IllegalArgumentException cause) {
throw new WebApplicationException(
ErrorResponse.error("Invalid json input.", Status.BAD_REQUEST));
Expand Down Expand Up @@ -119,7 +119,8 @@ public Response getActionToken(

if (requiredActions.contains(RequiredAction.VERIFY_EMAIL.name()) && user.getEmail() == null)
{
return ErrorResponse.error("User email missing", Status.BAD_REQUEST);
throw new WebApplicationException(
ErrorResponse.error("User email missing", Status.BAD_REQUEST));
}

if (!user.isEnabled()) {
Expand Down

0 comments on commit be27d1c

Please sign in to comment.