python - 使用隐式授权类型的 Django oauth 工具包

标签 python django angularjs oauth oauth-2.0

我正在尝试使用 oauth 工具包从 angularjs 前端应用程序针对 python/django 后端授权我的用户。使用隐式“授权类型”,尽管用户名和密码正确,但我总是收到带有参数“?error=unauthorized_client”的重定向。我尝试授予类型“授权码”没有任何问题。有什么建议吗?

最佳答案

来自 OAuth2 spec ,在隐式授权部分(4.2.2.1):

unauthorized_client

The client is not authorized to request an access token using this method.

我的理解是授权服务器不允许隐式授权。

关于python - 使用隐式授权类型的 Django oauth 工具包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27651107/

相关文章:

javascript - Angular.js : How do I initialize the ng-model of a <select> element to be the ng-selected option's value?

python - 类型错误 : object of type '_io.BytesIO' has no len()

python - Django 设置。数据库错误

python - Django/PIL 错误 - 呈现 : The _imagingft C module is not installed 时捕获异常

python - 我如何计算 Django 中页面的访问量? (通过重定向)

javascript - 通过 Angular JS 发布多个数组数据

AngularJS - 使用表单和自动完成

python - Pandas to_csv 带有转义字符和其他垃圾导致返回下一行

python - 从没有文件名的完整文件路径中提取目录路径

python - 为什么 matplotlib 中的图例不能正确显示颜色?