working on key management
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user