Allow creation of api keys scoped to functions
This commit is contained in:
@@ -96,9 +96,21 @@
|
||||
class="rounded border-gray-300 text-blue-600 focus:ring-blue-500">
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">Full Access (*)</span>
|
||||
</label>
|
||||
<!-- Future: Add function specific scopes here -->
|
||||
|
||||
<div class="mt-3 border-t pt-3">
|
||||
<p class="text-xs font-medium text-gray-500 mb-2">Or limit to specific functions:</p>
|
||||
<div class="max-h-40 overflow-y-auto space-y-2 pl-1">
|
||||
{% for function in functions %}
|
||||
<label class="flex items-center">
|
||||
<input type="checkbox" name="scopes" value="function:{{ function.id }}"
|
||||
class="rounded border-gray-300 text-blue-600 focus:ring-blue-500">
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">{{ function.name }}</span>
|
||||
</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mt-1 text-xs text-gray-500">Currently only full access is supported via UI.</p>
|
||||
<p class="mt-1 text-xs text-gray-500">Select "Full Access" or specific functions.</p>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end space-x-3">
|
||||
|
||||
Reference in New Issue
Block a user