活塞是否准备好OAuth? [英] Is Piston ready for OAuth?

查看:303
本文介绍了活塞是否准备好OAuth?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用活塞获取一个简单的API,希望使用其OAuth支持。但是,在启用OAuth后,我第一次点击终端,我收到一个错误:

I tried using Piston for a simple API, hoping to use its OAuth support. But the first time I hit the endpoint after enabling OAuth, I got an error:

TemplateDoesNotExist: oauth/challenge.html

确实没有这样的文件。

and sure enough, there is no such file.

OAuth是否在活塞中工作?我做了一个愚蠢的n00b错误?

Does OAuth work in Piston? Am I making a stupid n00b mistake?

推荐答案

不,这看起来像活塞中的一个错误。 oauth / challenge.html 被引用这里,但在该项目的任何地方都不存在(见活塞的模板文件夹)。

Nope - that looks like a bug in Piston. oauth/challenge.html is referenced here, but does not exist anywhere in that project (see Piston's templates folder).

你可以尝试创建一个空的 oauth / challenge .html TEMPLATE_DIRS 设置?

Could you try creating an empty oauth/challenge.html file somewhere in one of your directories specified in TEMPLATE_DIRS setting?

这篇关于活塞是否准备好OAuth?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆