Add limited backoffice employee QR login links

This commit is contained in:
Jeppe Bundgaard
2026-07-06 17:32:58 +02:00
parent 8544ce0a18
commit 7ac5c5585b
4 changed files with 265 additions and 0 deletions
+40
View File
@@ -40,6 +40,8 @@ tags:
description: Account security and passkey management endpoints
- name: Users
description: User management and customer operations
- name: Limited Backoffice
description: Limited backoffice employee and department management
- name: Search
description: System-wide search endpoints
- name: Orders
@@ -2762,6 +2764,44 @@ paths:
properties:
token: {type: string}
/limited-backoffice/employees/{employeeId}/login-link:
post:
tags:
- Limited Backoffice
summary: Create a managed employee QR login link
description: Create a reusable auth-token login link for an active employee managed through the limited backoffice.
operationId: createLimitedBackofficeEmployeeLoginLink
parameters:
- name: employeeId
in: path
required: true
schema:
type: integer
minimum: 1
responses:
'200':
description: Login link created successfully
content:
application/json:
schema:
type: object
properties:
employee_id:
type: integer
login_path:
type: string
example: /login/qr?token=abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
# User Endpoints
/users:
get: