working on key management

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-08-02 10:01:27 +02:00
parent 1e8ca6dc3a
commit 928e6d23cb
18 changed files with 227 additions and 60 deletions

View File

@@ -2,7 +2,6 @@
package de.srsoftware.oidc.web;
import static java.lang.System.Logger.Level.*;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.oidc.api.PathHandler;
@@ -43,7 +42,7 @@ public class StaticPages extends PathHandler {
return sendContent(ex, response.content);
} catch (FileNotFoundException fnf) {
LOG.log(WARNING, "Loaded {0} for language {1}…failed.", relativePath, lang);
return sendEmptyResponse(HTTP_NOT_FOUND, ex);
return notFound(ex);
}
}

View File

@@ -25,7 +25,7 @@
<td></td>
<td></td>
<td>
<button onclick="window.location.href='newclient.html';">Neuen Client hinzufügen…</button>
<button onclick="window.location.href='new_client.html';">Neuen Client hinzufügen…</button>
</td>
</tr>
</table>

View File

@@ -13,6 +13,7 @@ async function handleResponse(response){
if (!json.confirmed){
showConfirmationDialog(json.name);
} else {
console.log('redirecting to '+json.redirect_uri+'?code='+json.code+'&state='+json.state+'&scope=openid');
redirect(json.redirect_uri+'?code='+json.code+'&state='+json.state+'&scope=openid');
}
return;

View File

@@ -25,7 +25,7 @@
<td></td>
<td></td>
<td>
<button onclick="window.location.href='newclient.html';">Add new client…</button>
<button onclick="window.location.href='new_client.html';">Add new client…</button>
</td>
</tr>
</table>