-
-
Notifications
You must be signed in to change notification settings - Fork 287
获取到client_id和client_secret 后 无法访问获取token 和访问真正的api接口。 #60
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
Comments
grant_type=client_credentials should be in POST payload, not URI. |
I want to secure api with Oauth2,usage like below. environment:win10,py3.6, create a client:get client_id and client_secret:
step by step to get data
{'token_type': 'bearer', 'access_token': 'EI1G6lGOdfTxoUUpWSrkD0K1zW1Mdskx', 'expires_in': 7200}
now,I can't move forward, help me how to config ,thx。 |
Not sure if you are asking in the right repo. You are using oauthlib==2.1.0, which is clearly not used in this repo. We accept community helps on StackOverflow and bug reports on GitHub issues. We do not offer help for your own project. However, if you are working on your company’s project, it is suggested that you asking your company to purchase a commercial support. Check https://authlib.org/support |
yeah,i am just practice,I have realized it isn`t suitable for my needs. appreciate your help。thank you again。 |
example 启动后创建了一个 Client 并拿到里面的 id 和 secret ,无法访问token .我的代码如下:
我目前想用oauth2 加密我的api接口,我会发放id和secret给另外一个java 服务使用,java通过调用token 接口,得到token,然后再调用真的数据api。请问我是哪里用错了么。
The text was updated successfully, but these errors were encountered: