Skip to content

week 5 class notes: auth#16

Open
charlottewest wants to merge 1 commit intopce-uw-jscript400:masterfrom
charlottewest:master
Open

week 5 class notes: auth#16
charlottewest wants to merge 1 commit intopce-uw-jscript400:masterfrom
charlottewest:master

Conversation

@charlottewest
Copy link
Copy Markdown

No description provided.

Comment thread readme.md

* **Your Answer:**

Compare username and password?
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, via Read instead of Write

Comment thread readme.md
* **Question:** Describe the difference between authentication and authorization.

* **Your Answer:**

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Authentication verifies you are who you say you are.
Authorization verifies you have access to the requested actions.

Comment thread readme.md
* **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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently all three could be created with Identical usernames! Adding a unique validation before create is necessary.

Comment thread readme.md

* **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)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More rounds equals more secure hashing but requires exponentially more server resources.

Comment thread readme.md
* **Your Answer:**

* **Your Answer:**
In this case the code is not differentiating between an incorrectly entered password or username
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To deny malicious users additional information when they try to brute force an entry.

Comment thread readme.md

* **Your Answer:**

We wouldn't want to send the actual password. Just the encrypted version.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also additional user info such as CC#'s etc.

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