Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3ec03d1
start skeleton for auth handler
squirrelo Dec 5, 2015
7547ef8
flake8
squirrelo Dec 5, 2015
1df6292
add table for oauth2 keys
squirrelo Dec 5, 2015
0107b15
add token storage in redis
squirrelo Dec 5, 2015
0f22b12
add tests
squirrelo Dec 5, 2015
2d279e8
add tests for password
squirrelo Dec 5, 2015
599cdb0
add oauth2 bad client tests
squirrelo Dec 5, 2015
ec40863
fix up tests
squirrelo Dec 5, 2015
2357500
add error messages to oauth2 errors
squirrelo Dec 5, 2015
8692357
more tests for oauth access codes
squirrelo Dec 5, 2015
964873f
remove print
squirrelo Dec 5, 2015
f721773
update tests for other handlers
squirrelo Dec 5, 2015
96a5be6
merge upstream/master
squirrelo Dec 5, 2015
476ecab
add missing auth check
squirrelo Dec 7, 2015
13b0896
move test inserts
squirrelo Dec 7, 2015
61df629
merge upstream/artifact
squirrelo Dec 8, 2015
edbbebb
add daily request limiting
squirrelo Dec 8, 2015
7c58a6b
docstrings
squirrelo Dec 8, 2015
19a227a
update error controlled vocab
squirrelo Dec 8, 2015
f49fa50
move authenticator to wrapper
squirrelo Dec 11, 2015
ab3cbed
update other handlers to reflect decorator
squirrelo Dec 11, 2015
8fe3c2c
Merge branch 'artifact' of https://github.com/biocore/qiita into oauth2
squirrelo Dec 11, 2015
11c680a
flake8
squirrelo Dec 11, 2015
dcd78a1
address comments
squirrelo Dec 14, 2015
e3ef9d9
break up tests
squirrelo Dec 14, 2015
4b79d66
address sugestions
squirrelo Dec 21, 2015
4d1d100
add returns
squirrelo Dec 21, 2015
df7a469
add raises
squirrelo Dec 21, 2015
0c7b152
expand docstring
squirrelo Dec 21, 2015
4e2d728
break up test imports
squirrelo Dec 21, 2015
f0c25b3
flake8 and docstrings
squirrelo Dec 21, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions qiita_db/handlers/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------

from tornado.web import RequestHandler

import qiita_db as qdb
from .oauth2 import OauthBaseHandler, authenticate_oauth


def _get_artifact(a_id):
Expand Down Expand Up @@ -36,7 +35,8 @@ def _get_artifact(a_id):
return artifact, True, ''


class ArtifactFilepathsHandler(RequestHandler):
class ArtifactFilepathsHandler(OauthBaseHandler):
@authenticate_oauth
def get(self, artifact_id):
"""Retrieves the filepath information of the given artifact

Expand Down Expand Up @@ -70,7 +70,8 @@ def get(self, artifact_id):
self.write(response)


class ArtifactMappingHandler(RequestHandler):
class ArtifactMappingHandler(OauthBaseHandler):
@authenticate_oauth
def get(self, artifact_id):
"""Retrieves the mapping file information of the given artifact

Expand Down Expand Up @@ -113,7 +114,8 @@ def get(self, artifact_id):
self.write(response)


class ArtifactTypeHandler(RequestHandler):
class ArtifactTypeHandler(OauthBaseHandler):
@authenticate_oauth
def get(self, artifact_id):
"""Retrieves the artifact type information of the given artifact

Expand Down
Loading