stages/authenticator_*: fix missing fields
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
f41f2bfdab
commit
f695a3f40a
|
@ -30,7 +30,7 @@ class StaticDeviceSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
model = StaticDevice
|
model = StaticDevice
|
||||||
fields = ["name", "token_set"]
|
fields = ["name", "token_set", "pk"]
|
||||||
depth = 2
|
depth = 2
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ class TOTPDeviceSerializer(ModelSerializer):
|
||||||
model = TOTPDevice
|
model = TOTPDevice
|
||||||
fields = [
|
fields = [
|
||||||
"name",
|
"name",
|
||||||
|
"pk",
|
||||||
]
|
]
|
||||||
depth = 2
|
depth = 2
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class AuthenticateWebAuthnStageSerializer(StageSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
model = AuthenticateWebAuthnStage
|
model = AuthenticateWebAuthnStage
|
||||||
fields = StageSerializer.Meta.fields
|
fields = StageSerializer.Meta.fields + ["configure_flow"]
|
||||||
|
|
||||||
|
|
||||||
class AuthenticateWebAuthnStageViewSet(ModelViewSet):
|
class AuthenticateWebAuthnStageViewSet(ModelViewSet):
|
||||||
|
@ -32,9 +32,7 @@ class WebAuthnDeviceSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
model = WebAuthnDevice
|
model = WebAuthnDevice
|
||||||
fields = [
|
fields = ["pk", "name", "created_on"]
|
||||||
"name",
|
|
||||||
]
|
|
||||||
depth = 2
|
depth = 2
|
||||||
|
|
||||||
|
|
||||||
|
|
24
swagger.yaml
24
swagger.yaml
|
@ -10786,6 +10786,10 @@ definitions:
|
||||||
type: integer
|
type: integer
|
||||||
readOnly: true
|
readOnly: true
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
pk:
|
||||||
|
title: ID
|
||||||
|
type: integer
|
||||||
|
readOnly: true
|
||||||
TOTPDevice:
|
TOTPDevice:
|
||||||
description: Serializer for totp authenticator devices
|
description: Serializer for totp authenticator devices
|
||||||
required:
|
required:
|
||||||
|
@ -10798,17 +10802,30 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
maxLength: 64
|
maxLength: 64
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
pk:
|
||||||
|
title: ID
|
||||||
|
type: integer
|
||||||
|
readOnly: true
|
||||||
WebAuthnDevice:
|
WebAuthnDevice:
|
||||||
description: Serializer for WebAuthn authenticator devices
|
description: Serializer for WebAuthn authenticator devices
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
pk:
|
||||||
|
title: ID
|
||||||
|
type: integer
|
||||||
|
readOnly: true
|
||||||
name:
|
name:
|
||||||
title: Name
|
title: Name
|
||||||
type: string
|
type: string
|
||||||
maxLength: 200
|
maxLength: 200
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
created_on:
|
||||||
|
title: Created on
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
readOnly: true
|
||||||
Provider:
|
Provider:
|
||||||
title: Provider
|
title: Provider
|
||||||
description: Provider Serializer
|
description: Provider Serializer
|
||||||
|
@ -14014,6 +14031,13 @@ definitions:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/Flow'
|
$ref: '#/definitions/Flow'
|
||||||
|
configure_flow:
|
||||||
|
title: Configure flow
|
||||||
|
description: Flow used by an authenticated user to configure this Stage. If
|
||||||
|
empty, user will not be able to configure this stage.
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
x-nullable: true
|
||||||
CaptchaStage:
|
CaptchaStage:
|
||||||
description: CaptchaStage Serializer
|
description: CaptchaStage Serializer
|
||||||
required:
|
required:
|
||||||
|
|
Reference in New Issue