@Path(value="tokens") @PermitAll @Consumes(value="application/json") @Produces(value="application/json") public class TokenEndpoint extends Object
| Constructor and Description |
|---|
TokenEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createFromBasicAuth()
This endpoint is called when a client makes a REST call with basic auth.
|
javax.ws.rs.core.Response |
createFromRedirect()
This endpoint is called when Keycloak redirects the logged in user to our application.
|
javax.ws.rs.core.Response |
listMyTokens() |
javax.ws.rs.core.Response |
revoke(String tokenId) |
javax.ws.rs.core.Response |
update(String tokenId,
TokenUpdateRequest request) |
@GET @Path(value="/") public javax.ws.rs.core.Response listMyTokens()
@DELETE
@Path(value="/{tokenId}")
public javax.ws.rs.core.Response revoke(@PathParam(value="tokenId")
String tokenId)
@GET @Path(value="create") public javax.ws.rs.core.Response createFromRedirect()
@POST
@Path(value="create")
public javax.ws.rs.core.Response createFromBasicAuth()
throws Exception
Exception@PUT
@Path(value="{tokenId}")
public javax.ws.rs.core.Response update(@PathParam(value="tokenId")
String tokenId,
TokenUpdateRequest request)
Copyright © 2015–2016. All rights reserved.