Browse Source

improving clients page

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
main
Stephan Richter 9 months ago
parent
commit
3b6e951ccd
  1. 2
      de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java
  2. 2
      de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js

2
de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java

@ -84,7 +84,7 @@ public class FileStore implements AuthorizationService, ClientService, SessionSe
client.remove(scope); client.remove(scope);
} }
} }
if (client.isEmpty()) clients.remove(clientId); // if (client.isEmpty()) clients.remove(clientId); // keep client as mark for ClientController.dash
} }
if (clients.isEmpty()) authorizations.remove(userId); if (clients.isEmpty()) authorizations.remove(userId);
} }

2
de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js

@ -28,7 +28,7 @@ function handleClients(response){
} }
function link(url){ function link(url){
return url ? '<a href="'+url+'">'+url.split('?')[0]+'</a>': ""; return url ? '<a href="'+url+'" target="_blank">'+url.split('?')[0]+'</a>': "";
} }
function handleRemove(response){ function handleRemove(response){

Loading…
Cancel
Save