Topic on Help talk:OAuth

Oauth2.0 JWT validation

6
Gam3 (talkcontribs)

What key is used to sign the JWT (Bearer Token) returned.

Tgr (WMF) (talkcontribs)

$wgOAuth2PrivateKey (as noted on the extension page).

Gam3 (talkcontribs)

That is the question I am asking. What is that variable set to by Wikipedia APi.

Tgr (WMF) (talkcontribs)

As the variable name might suggest, it's a private key.

Gam3 (talkcontribs)

And where can I find the public half of that key?

Tgr (WMF) (talkcontribs)

I don't think we are making it public. You are unlikely to need it, it's used by code that needs to authorize access based on OAuth grants.

In theory it could be made public though - if you have a use case, please file a task to discuss it.

Reply to "Oauth2.0 JWT validation"