VikeLabs / lecshare

A React application with typescript implementation: Making lectures more accessible for students with auditory, visual, or learning impairments; and Improving learning outcomes for students in lecture-based courses.
https://vikelabs.github.io/lecshare/
GNU General Public License v3.0
5 stars 3 forks source link

Course access authentication system. #66

Open aomi opened 4 years ago

aomi commented 4 years ago

Determine how to implement a system where only select users are able to access the lecture information.

AWS Cognito (AWS Amplify)

Is it worth it to just implement AWS Cognito so we don't have to do any janky workarounds? My current thoughts are just to throw in AWS Amplify into the frontend so we can use AWS Cognito.

Using the unique ID from Cognito, we can use that as a partition key for the DynamoDB table of users.

Jank

The other solution would be storing a "password" that we generated and store it within class item inside the table. When that class is requested, the API would fetch the class and check if the user requesting it has passed in the correct "password" and if they are not equal it would reject the request?

If we can discuss this that would be great.

aomi commented 4 years ago

@ryleyw How much work is it to integrate AWS Amplify (Cognito specifically) into the front-end? This is something we will need to do eventually. The pros of adding this now are opening the door to user permissions etc.

aomi commented 4 years ago

After some research, I think we should throw in Cognito. https://serverless-stack.com/chapters/configure-aws-amplify.html This shows how it is pretty straightforward so... Should be a piece of cake for Ryley to do 👍