week 5 class notes: auth#16
Open
charlottewest wants to merge 1 commit intopce-uw-jscript400:masterfrom
Open
Conversation
MadEste
reviewed
Aug 8, 2019
|
|
||
| * **Your Answer:** | ||
|
|
||
| Compare username and password? |
MadEste
reviewed
Aug 8, 2019
| * **Question:** Describe the difference between authentication and authorization. | ||
|
|
||
| * **Your Answer:** | ||
|
|
There was a problem hiding this comment.
Authentication verifies you are who you say you are.
Authorization verifies you have access to the requested actions.
MadEste
reviewed
Aug 8, 2019
| * **Question:** What would happen if three different users tried to sign up with the same username? How can we prevent that? | ||
|
|
||
| * **Your Answer:** | ||
| Validate a match in the db before committing a new document |
There was a problem hiding this comment.
Currently all three could be created with Identical usernames! Adding a unique validation before create is necessary.
MadEste
reviewed
Aug 8, 2019
|
|
||
| * **Your Answer:** | ||
|
|
||
| Based on salt rounds, the value will go through 2^x rounds of hashing (generating a value from a string of text using an algorithm) |
There was a problem hiding this comment.
More rounds equals more secure hashing but requires exponentially more server resources.
MadEste
reviewed
Aug 8, 2019
| * **Your Answer:** | ||
|
|
||
| * **Your Answer:** | ||
| In this case the code is not differentiating between an incorrectly entered password or username |
There was a problem hiding this comment.
To deny malicious users additional information when they try to brute force an entry.
MadEste
reviewed
Aug 8, 2019
|
|
||
| * **Your Answer:** | ||
|
|
||
| We wouldn't want to send the actual password. Just the encrypted version. |
There was a problem hiding this comment.
Also additional user info such as CC#'s etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.