mgomes / api_auth

HMAC authentication for Rails and HTTP Clients
MIT License
480 stars 147 forks source link

Update #api_authenticate example in README.md #78

Closed nativestranger closed 9 years ago

nativestranger commented 9 years ago

This example was broken because before_filters & before_actions need to render or redirect in order to prevent actions from being called.

The example also uses a before_action now since it is preferred over before_filter.

Let me know if you'd like to merge this but want me to make some changes first!

awendt commented 9 years ago

Thanks for catching the "render or redirect, not return false" part! :+1:

kjg commented 9 years ago

As pointed out by @ShadowRadiance in #79, let's make this a head(:unauthorized), and then I think this is good to go.

Thanks everyone!

nativestranger commented 9 years ago

Okay @kjg good to go! :+1: