Skip to content

Commit

Permalink
Fix authorization in target scope page
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosnt committed Jan 4, 2025
1 parent 10a4580 commit b1de195
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
icon="mdi-antenna"
empty-head="No Scope Defined"
empty-text="Define the ports and paths to be scanned and how to authenticate. Otherwise, the whole target address will be scanned"
auditor
@load-data="(data) => (ports = data)"
>
<template #data>
Expand All @@ -20,7 +21,7 @@
<th class="text-center font-weight-bold">Authentication</th>
<th class="text-center font-weight-bold">Auth Name</th>
<th class="text-center font-weight-bold">Auth Secret</th>
<th />
<th v-if="autz.isAuditor()" />
</tr>
</thead>
<tbody>
Expand All @@ -40,7 +41,7 @@
<td class="text-center">
{{ port.authentication ? port.authentication.secret : "" }}
</td>
<td>
<td v-if="autz.isAuditor()">
<v-dialog v-if="!port.authentication" width="auto">
<template #activator="{ props: activatorProps }">
<BaseButton
Expand Down Expand Up @@ -95,6 +96,7 @@
definePageMeta({ layout: false });
const TargetPortDialog = resolveComponent("TargetPortDialog");
const portUtils = usePorts();
const autz = useAutz();
const dataset = ref(null);
const ports = ref([]);
const api = useApi("/api/target-ports/", true, "Target port");
Expand Down

0 comments on commit b1de195

Please sign in to comment.