Skip to content

Date field can't be serialized to JSON on user write stage #6262

@lazaroblanc

Description

@lazaroblanc

Describe the bug

Date fields can't be serialised to JSON and thus are not saved to the user.

To Reproduce

I've added a field of type Date to my user settings by adding it in the default-user-settings prompt stage.
When I go into my user settings, set a value and save it, my user's fields are no longer displayed, instead replaced by a Open settings button.

image

When I click the button I get this error message:

builtins.TypeError: Object of type date is not JSON serializable

image

  • authentik version: 2023.6.1
  • Deployment: docker-compose

Additional context
https://discord.com/channels/809154715984199690/1129892642080161913

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug/confirmedConfirmed bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions