dcaro added a comment.

  In T243200#8873689 <https://phabricator.wikimedia.org/T243200#8873689>, @rook 
wrote:
  
  > Sorry, I suspect I'm being dense.
  
  No problem, asking is better than not xd
  
  > Where do I learn more about the grant_type and authorization_code.
  
  Here you can see some python code using it 
https://github.com/david-caro/wm-what/blob/main/wm_what/app.py#LL182C1-L192C57
  Here there's some docs, though they don't explain in detail why that value: 
https://www.mediawiki.org/wiki/OAuth/For_Developers#Authorization_2 (point 2)
  Here's some docs from the standard itself: https://oauth.net/2/grant-types/
  
  > I see the former in the errors, though I do not know what it would look 
like when set, I assume as part of c.Auth0OAuthenticator.token_params. I'm 
assuming authorization_code is either another token, or a subset of grant_type?
  
  It's the value for it, I think that something like this will do:
  
    c.Auth0OAuthenticator.token_params = {
        "grant_type": "authorization_code",
    }
  
  Note that this is literal, the `grant_type` value is the string 
`authorization_code`.

TASK DETAIL
  https://phabricator.wikimedia.org/T243200

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: dcaro
Cc: dcaro, bd808, rook, Aklapper, Stang, Daniel_Mietchen, Bstorm, Dvorapa, 
MarcoAurelio, pywikibot-bugs-list, Mpaa, Chicocvenancio, PotsdamLamb, Devnull, 
Slst2020, Jyoo1011, nskaggs, JohnsonLee01, SHEKH, Dijkstra, Raymond_Ndibe, 
Khutuck, Zkhalido, AshokChakra, Viztor, 94rain, Wenyi, sietec, R96340, Tbscho, 
MayS, Mdupont, JJMC89, Altostratus, Avicennasis, Susannaanas, Fuzheado, 
mys_721tx, Jane023, Xqt, yuvipanda, jayvdb, zhuyifei1999, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to