Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot save Auth providers settings from UI #4737

Closed
wRadion opened this issue Apr 13, 2024 · 1 comment
Closed

Bug: Cannot save Auth providers settings from UI #4737

wRadion opened this issue Apr 13, 2024 · 1 comment

Comments

@wRadion
Copy link

wRadion commented Apr 13, 2024

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!

@ganigeorgiev
Copy link
Member

ganigeorgiev commented Apr 13, 2024

The bug is only in the Admin UI (the "Clear all fields" btn wasn't properly unseting the form fields). A fix was submitted in master and it will be available with the next minor v0.22.9 release in the next couple days. If you don't want to wait you can refresh the page and manually unset/change the fields without clicking on the "Clear" btn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants