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

[Final Code, but not ready to merge] Credentials Table #1597

Closed
wants to merge 13 commits into from

Conversation

analogrelay
Copy link
Contributor

Fixes #1389

Adds a Credentials table to store API Keys and Hashed Passwords. Helps prepare for OAuth support next sprint.

Note: This PR should NOT be merged in as it isn't the final merge. I'll be rebasing this on @TimLovellSmith 's sign-up changes and updating it next sprint. There will be a PR there, but I wanted to get this PR out because it's basically all the functional changes, it's just missing the changes necessary to reconcile it with Tim's changes.

public const string UrlValidationErrorMessage = "This doesn't appear to be a valid HTTP/HTTPS URL";
public static class CredentialTypes
{
public static readonly string PasswordPbkdf2 = "password.pbkdf2";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The credential type can be any string, but this sets a vague precedent for "[type].[subtype]". For example, if we decided to use a different password hashing algorithm (ROT13, for example), we'd use "password.rot13". Similarly, if we decide to rev API keys to be hashed, we'd use "apikey.v2"

@analogrelay
Copy link
Contributor Author

Closing this out, opening a new one for the actual merge.

@analogrelay analogrelay closed this Oct 2, 2013
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