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

Initial auth plumbing #702

Merged
merged 7 commits into from
Jul 18, 2016
Merged

Initial auth plumbing #702

merged 7 commits into from
Jul 18, 2016

Conversation

nathanielc
Copy link
Contributor

@nathanielc nathanielc commented Jul 6, 2016

Adds basic plumbing for authenticating and authorizing requests.

The basic design has two kinds of user actions that can be controlled.

  1. API calls are controlled by their HTTP method and resource path.
  2. The /write endpoint further checks permissions for write access to the database.
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Vendor jwt dep to version 3.0.0
  • Add tests to auth package.

default:
return AllPrivileges, fmt.Errorf("unknown method %q", m)
}
}
Copy link

Choose a reason for hiding this comment

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

Wondering if authorizing the HTTP request is the right way to go or if it should be somewhere below the transport layer. Thoughts?

….git vendor/github.com/dgrijalva/jwt-go

subrepo:
  subdir:   "vendor/github.com/dgrijalva/jwt-go"
  merged:   "d2709f9"
upstream:
  origin:   "https://github.com/dgrijalva/jwt-go.git"
  branch:   "v3.0.0"
  commit:   "d2709f9"
git-subrepo:
  version:  "0.3.0"
  origin:   "???"
  commit:   "???"
@nathanielc nathanielc merged commit 7890a7d into master Jul 18, 2016
@nathanielc nathanielc deleted the nc-auth branch July 18, 2016 17:31
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