Page MenuHomeHarejMay 18 2023, 2:23 PM
Tags
Referenced Files
F57775961: Screenshot 2024-12-03 at 12.06.23 PM.png
Dec 3 2024, 8:06 PM
F57775959: Screenshot 2024-12-03 at 12.06.16 PM.png
Dec 3 2024, 8:06 PM
F57775957: Screenshot 2024-12-03 at 12.06.08 PM.png
Dec 3 2024, 8:06 PM
F57775956: Screenshot 2024-12-03 at 12.05.44 PM.png
Dec 3 2024, 8:06 PM
Subscribers

Description

Steps to replicate the issue (include links if applicable):

What happens?:

This results in a 500 error from the server despite repeated attempts

What should have happened instead?:

OAuth consumer should be registered

Software version (skip for WMF-hosted wikis like Wikipedia):

Wikibase.Cloud as of 2023-05-18

Other information (browser name/version, screenshots, etc.):

Possible Solution

[...]I took a look and it's the "This consumer is for use only by X" option. This gives the stated error with the selected permissions, and a 500 error if you use either of the default permission radio buttons instead. this may be a solution.

I think we need to set $wgOAuth2PrivateKey & $wgOAuth2PublicKey

Event Timeline

@Harej Hello!
Sorry for the long delay, we are going through the tickets now checking what's still current.
We tried this, and it works for us currently.
Could you please check if it works for you? If it doesn't, could you tell us exactly what you put in the form?

I now get this error:

[6aab8836cf02dc6764ce8a29] 2024-11-14 19:19:54: Fatal exception of type "Lcobucci\JWT\Signer\Key\FileCouldNotBeRead"

Hi @Harej !
Could you please share the input you provide on the form?
Thanks!

My input and the resulting error

Thanks, @Harej !
I was able to reproduce on my instance.

We need to think about how we are going to manage all these keys for all of the different wikis. @dang correctly identified that we can't check these into git. I think we have a few options and we probably want to have a separate key per site to prevent across site attacks:

@dang will research how to generate a suitable public/private keypair purely in our platform api