Class OnlineAccessEndpoints
java.lang.Object
net.optionfactory.keycloak.onlineaccess.OnlineAccessEndpoints
- Author:
- rferranti
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOnlineAccessEndpoints(org.keycloak.models.KeycloakSession session, int tokenDurationInSeconds) -
Method Summary
Modifier and TypeMethodDescriptionRequesting client must have online-access role.
-
Field Details
-
REQUIRED_ROLE
- See Also:
-
-
Constructor Details
-
OnlineAccessEndpoints
public OnlineAccessEndpoints(org.keycloak.models.KeycloakSession session, int tokenDurationInSeconds)
-
-
Method Details
-
create
@POST @Path("/action-token") @Produces("application/json") public OnlineAccessEndpoints.OnlineSessionResponse create(@HeaderParam("at") String at, @QueryParam("redirect_uri") String redirectUri) throws Exception Requesting client must have online-access role. If requesting client and the access_token client differ, online-access role, online-access role must have a possibly multi-values 'clients' attribute containing the access_token client id. Allowed redirect_uri are inherited from the at client, allowlist can be expanded by adding redirect_uri attributes to the online-access role.- Parameters:
at- the access tokenredirectUri-- Returns:
- a link to
- Throws:
Exception
-