remove test route
Co-authored-by: kritzl <kritzl@kritzl.dev>
This commit is contained in:
parent
c518d4a514
commit
9a4dbfeb16
1 changed files with 2 additions and 12 deletions
|
|
@ -35,19 +35,9 @@ public class SSHKeyResourceProvider implements RealmResourceProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("hello")
|
@Path("export")
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Operation(summary = "Public hello endpoint", description = "This endpoint returns hello and the name of the requested realm.")
|
public Response exportKeys() {
|
||||||
@APIResponse(responseCode = "200", description = "", content = {
|
|
||||||
@Content(schema = @Schema(implementation = Response.class, type = SchemaType.OBJECT)) })
|
|
||||||
public Response helloAnonymous() {
|
|
||||||
return Response.ok(Map.of("hello", session.getContext().getRealm().getName())).build();
|
|
||||||
}
|
|
||||||
|
|
||||||
@GET
|
|
||||||
@Path("hello-auth")
|
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
|
||||||
public Response helloAuthenticated() {
|
|
||||||
UserProvider userProvider = session.users();
|
UserProvider userProvider = session.users();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue