Skip to content

Bug: Cannot save Auth providers settings from UI #4737

Description

@wRadion

When I want to edit the Auth providers settings in the UI (here it's Discord), when I do "Clear all fields", put another client id and client secret in the fields, then click "Save changes", I have this error:

ERROR PATCH /api/settings
└─ An error occurred while loading the submitted data.
   └─ code=400, message=json: cannot unmarshal string into Go struct field AuthProviderConfig.discordAuth.pkce of type bool, internal=json: cannot unmarshal string into Go struct field AuthProviderConfig.discordAuth.pkce of type bool

I didn't test doing it from code.

I've tested in --dev mode (on my local machine) as well as in production (on a remote server). Thanks for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions