首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >授权凭证已剥离- django,elastic beanstalk,oauth

授权凭证已剥离- django,elastic beanstalk,oauth
EN

Stack Overflow用户
提问于 2014-03-09 14:52:45
回答 4查看 9.7K关注 0票数 81

我使用django- REST -framework在django中实现了rest api,并使用oauth2进行身份验证。

我使用以下工具进行测试:

curl -X POST -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=password&username=YOUR_USERNAME&password=YOUR_PASSWORD" http://localhost:8000/oauth2/access_token/

curl -H "Authorization: Bearer <your-access-token>" http://localhost:8000/api/

在localhost上,成功的结果与文档一致。

在将其推送到现有的AWS弹性beanstalk实例时,我收到以下消息:

{ "detail" : "Authentication credentials were not provided." }
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22279301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档