truemped / supercell

supercell
http://supercell.readthedocs.org
Apache License 2.0
7 stars 10 forks source link

Feature/apikey decorator #13

Closed rebeling closed 10 years ago

rebeling commented 10 years ago

Hi Daniel,

I have written an apikey decorator. Would be nice to have, what do u think about this solution.

Kind regards, Matthias

truemped commented 10 years ago

Hi, have a look at the newly created Middleware class created in commit f80569f931f538179d39bd8f9499f3c5957cad73 and an example for typed query parameters in commit 6ac414a1f0f8f4115bc29fe01e397cf5f578c35e.

I would like to keep the supercell core as clean as possible, so I won't merge the apikey decorator here. Maybe we start a new project supercell-auth that mainly contains authentication decorators. I am heavily biased towards more sophisticated solutions though, something like 2-legged OAuth.