implemented client removal
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
/* © SRSoftware 2024 */
|
||||
package de.srsoftware.oidc.api;
|
||||
|
||||
public class Constants {
|
||||
public static final String CLIENT_ID = "client_id";
|
||||
public static final String NAME = "name";
|
||||
public static final String REDIRECT_URI = "redirect_uri";
|
||||
public static final String SECRET = "secret";
|
||||
public static final String CLIENT_ID = "client_id";
|
||||
public static final String NAME = "name";
|
||||
public static final String REDIRECT_URI = "redirect_uri";
|
||||
public static final String SECRET = "secret";
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import org.json.JSONObject;
|
||||
|
||||
public abstract class PathHandler implements HttpHandler {
|
||||
public static final String CONTENT_TYPE = "Content-Type";
|
||||
public static final String DELETE = "DELETE";
|
||||
public static final String GET = "GET";
|
||||
public static final String JSON = "application/json";
|
||||
public static final String POST = "POST";
|
||||
@@ -37,9 +38,14 @@ public abstract class PathHandler implements HttpHandler {
|
||||
return new Bond(path);
|
||||
}
|
||||
|
||||
public boolean doDelete(String path, HttpExchange ex) throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean doGet(String path, HttpExchange ex) throws IOException {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean doPost(String path, HttpExchange ex) throws IOException {
|
||||
return false;
|
||||
}
|
||||
@@ -50,8 +56,9 @@ public abstract class PathHandler implements HttpHandler {
|
||||
String method = ex.getRequestMethod();
|
||||
System.out.printf("%s %s\n", method, path);
|
||||
boolean dummy = switch (method) {
|
||||
case POST -> doPost(path,ex);
|
||||
case DELETE -> doDelete(path,ex);
|
||||
case GET -> doGet(path,ex);
|
||||
case POST -> doPost(path,ex);
|
||||
default -> false;
|
||||
};
|
||||
ex.getResponseBody().close();
|
||||
|
||||
Reference in New Issue
Block a user