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.
Does OAuth work in Piston? Am I making a stupid mistake?
Best Answer
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).Could you try creating an empty
oauth/challenge.html
file somewhere in one of your directories specified inTEMPLATE_DIRS
setting?