-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds an RSS feed via pages/all.rss #225
Conversation
def authenticate(role = 'any') | ||
# RSS works with a token | ||
return true if authenticated_for_rss? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm wouldn't it be better to use skip_before_filter :authenticate, :only => :whatever
and add the authenticated_for_rss
filter for the rss feed? I'd find it a bit scary to allow using this token so generally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well it's not so generall. authenticated_for_rss?
checks the controller and action but i see your point.
General token authentication (pages rss)
@wvengen merged your PR |
Thanks. Little oops: when the token is wrong, the exception |
@wvengen updated |
Thanks! I did some more research on the HMAC-SHA1 key concatenation. When there are many different foodcoop-prefix combinations this may not be safe. We'd either need to use HMAC for concatenation, or put this information in the message itself. Working on the latter now. |
I'm seeing the meta tag in the dashboard too - wouldn't restricting it to the page controller be clearer? |
regarding the key concatenation - see fsmanuel#3 |
|
put tokenverifier specifics in message for security
@wvengen i should do a rebase before we merge |
add spec for tokenverifier
|
found a way: should we go for the gem or add it to ApplicationController? rebase - will open a new PR when we are done |
@wvengen with the gem it would look like that |
Cool -> gem! Put it in wiki gemspec, perhaps? |
@wvengen moved it. if we are done i'll open a new PR with one commit for all the changes. |
Great! |
addresses #223
not yet ready to merge. we need a way to authenticate the user (e.g. a token)