I have a controller which loads an article and shows it. The article has a property that shows if it is private or public.
If the article is private, I would like the user to log in before showing the article.
I cant just simply put an [Authorize] attribute on the action since if the article is public it shouldn't require authorization to show it.
What would be the most dry way to do this?
I would like to depend on the built in functionality of the default authorization model (I wouldn't want to write redirects and passing parameters manually if I don't need to)