Skip to content
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

ADDING O-Auth to TaskListRails #83

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

Trishthedish
Copy link

https://github.com/AdaGold/standalone-exercises/blob/master/tasklistrails-oauth.md
Accomplished Phase 1 and will continue to work on Phase 2 and 3 over the weekend.

@Hamled

Phase 1: Setting up OAuth
Following the steps in the Textbook curriculum, add OAuth to your TaskListRails Application and enable a user to log in from the homepage.

Requirements:
Have a button on the home page for the user to log in
The log in button shall turn in to a log out button when the user is logged in

All other requirements from in-class notes apply:
Managed via session
SessionsController
User model

Phase 2: User Authorization
Requirements:
Ensure that users who are not authenticated see a welcome message and a link to authenticate. No other pages should be viewable by the guest user.
Ensure that Users who are authenticated see the normal Tasklist page.
Build Automated Tests on the User Model.

Phase 3: Modifying The Task Model & Controller
Requirements:
Modify the Task Model to create a relation to the User Model. A User should have many tasks and each Task should belong to a User.
Modify the Task Controller index and show actions so that a user only sees tasks that belong to them.
Modify the Task Controller's edit and update method to ensure that the user cannot edit a task that does not belong to them.
Modify the new and create actions for the task controller so that the new task created will belong to the current user.
Ensure that unauthenticated users cannot create tasks and are redirected to login.

…. However, it's taking users to a different page. About to make several changes and want to save working part.
…in a checkbox. Our ERD hwk last night leads me to believe I could accomplish this more efficiently
…gged in' no log out button and not rendering avatar.
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.

1 participant