File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
src/main/java/com/github/maxime1907/keycloak/actions/token Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 7
7
<artifactId >actions-token</artifactId >
8
8
<groupId >io.wiremind.keycloak.actionstoken</groupId >
9
9
<packaging >jar</packaging >
10
- <version >0.0.9 </version >
10
+ <version >0.0.10 </version >
11
11
12
12
<properties >
13
- <java .version>17 </java .version>
14
- <keycloak .version>24 .0.0</keycloak .version>
15
- <version .compiler.maven.plugin>3.8.1 </version .compiler.maven.plugin>
13
+ <java .version>21 </java .version>
14
+ <keycloak .version>26 .0.0</keycloak .version>
15
+ <version .compiler.maven.plugin>3.9.9 </version .compiler.maven.plugin>
16
16
<maven .compiler.source>21</maven .compiler.source>
17
17
<maven .compiler.target>21</maven .compiler.target>
18
18
<gson .version>2.10.1</gson .version>
Original file line number Diff line number Diff line change 1
-
2
1
package com .github .maxime1907 .keycloak .actions .token ;
3
2
4
3
import java .util .LinkedList ;
20
19
import jakarta .ws .rs .core .UriInfo ;
21
20
22
21
import org .jboss .logging .Logger ;
23
- import org .jboss .resteasy .annotations .cache .NoCache ;
24
22
import org .keycloak .TokenCategory ;
25
23
import org .keycloak .authentication .actiontoken .execactions .ExecuteActionsActionToken ;
26
24
import org .keycloak .common .util .Time ;
@@ -58,7 +56,6 @@ public ActionsTokenResource(KeycloakSession session) {
58
56
}
59
57
60
58
@ POST
61
- @ NoCache
62
59
@ Path ("generate" )
63
60
@ Consumes (MediaType .APPLICATION_JSON )
64
61
@ Produces (MediaType .APPLICATION_JSON )
@@ -76,7 +73,7 @@ public Response getActionToken(
76
73
77
74
if (!auth .getRealm ().equals (realmManager .getKeycloakAdminstrationRealm ())
78
75
&& !auth .getRealm ().equals (realm )) {
79
- throw new org . keycloak . services . ForbiddenException ();
76
+ throw new ForbiddenException ();
80
77
}
81
78
82
79
realmAuth = AdminPermissions .evaluator (session , realm , auth );
You can’t perform that action at this time.
0 commit comments