Hi.
Im trying to get working the more basic and "direct" code for Oauth2 in lichess.org
I read the documentation of the lichess API and also the documentation for the python module related.
https://lichess.org/api#tag/OAuth/operation/oauth
https://lichess-org.github.io/berserk/u ... enticating (here there is no much info about oauth2.)
Except:
So i look at an example code for requests_oauthlib:
https://requests-oauthlib.readthedocs.i ... otify.html
And i see this, i see this in all the examples i found so far:
it seems that in lichess "client_secret" is not used... ok.
But you need a code_challenge_method and code_challenge... lets guess in the future how you write that for rquests-oauthlib. But for now im facing this:
In the lichess API you will read:
This will be for a cellphone app.
Thanks!
Im trying to get working the more basic and "direct" code for Oauth2 in lichess.org
I read the documentation of the lichess API and also the documentation for the python module related.
https://lichess.org/api#tag/OAuth/operation/oauth
https://lichess-org.github.io/berserk/u ... enticating (here there is no much info about oauth2.)
Except:
Code:
you can use requests_oauthlib.Oauth2Session for this.you can use requests_oauthlib.Oauth2Session for this.from requests_oauthlib import OAuth2Sessionsession = OAuth2Session(...)client = berserk.Client(session)
https://requests-oauthlib.readthedocs.i ... otify.html
And i see this, i see this in all the examples i found so far:
Code:
client_id = '<the id you get from spotify developer console>'client_secret = '<the secret you get from spotify developer console>'redirect_uri = 'https://your.registered/callback'
But you need a code_challenge_method and code_challenge... lets guess in the future how you write that for rquests-oauthlib. But for now im facing this:
In the lichess API you will read:
So... where i get my redirect_uri? i mean, this is for an app... i dont have any url?? ... i have to buy a domain for make Oauth2? well, of course i dont realice yet how make this work. And this is the first stone in my way.redirect_uri required.... The absolute URL that the user should be redirected to with the authorization result.
This will be for a cellphone app.
Thanks!
Statistics: Posted by 9acca9 — Mon Oct 14, 2024 10:46 pm