开发者

Creating http based authentication

Is there any open source libraries for creating http based authentication 开发者_如何学编程like flickr and remember the milk?


http://openid.net/ is nice for public facing sites. Same sort of thing stackoverflow uses.

Otherwise it'll depend on your web development framework.


You'll be signing requests. Any OpenID or OAuth library will have code which does that - if not a separate library, something you can rip out, even though you're not using the protocol flow.

Alternately, there's demo code for Amazon AWS clients in their developer docs which also signs requests with API keys and timestamps. It's the same process on the client or server side - comparing a hash with the original - so you'll probably just have to translate their request model to whatever your framework uses.

Neither of these are exactly what you're asking for, but it's a start.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜