Skip to content

Conversation

@lexi
Copy link
Owner

@lexi lexi commented Nov 22, 2015

  • Implemented very simple authentication with basic auth. All methods in the ArticlesController now require authentication except show and index. Username and password are stored as environment variables.
  • Introduced a logged_in? method in the application controller to easily use in the views to show/hide authenticated user actions and information.

Any comments or suggestions @joeljunstrom?

I would also like to make it possible to login and logout just by requesting those paths (/login and /logout) but I got stuck while trying to figure out where to place that logic. Would it make sense to create a AuthenticationController for this?

* Implemented very simple authentication with basic auth.
* Introduced a logged_in? method in the application controller to
easily use in the views to show/hide authenticated user actions and
information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants