Add scope ordinality and translations. Process oauth tokens and limit scopes accordingly.
This commit is contained in:
parent
25ceb90fc6
commit
e74eb3ee87
8 changed files with 137 additions and 31 deletions
|
@ -1,9 +1,9 @@
|
|||
import re
|
||||
import logging
|
||||
|
||||
from flask.ext.restful import Resource, reqparse
|
||||
from flask.ext.restful import reqparse
|
||||
|
||||
from endpoints.api import resource, method_metadata, nickname, truthy_bool
|
||||
from endpoints.api import ApiResource, resource, method_metadata, nickname, truthy_bool
|
||||
from app import app
|
||||
from auth import scopes
|
||||
|
||||
|
@ -131,7 +131,7 @@ def swagger_route_data():
|
|||
return swagger_data
|
||||
|
||||
@resource('/v1/discovery')
|
||||
class DiscoveryResource(Resource):
|
||||
class DiscoveryResource(ApiResource):
|
||||
"""Ability to inspect the API for usage information and documentation."""
|
||||
@nickname('discovery')
|
||||
def get(self):
|
||||
|
|
Reference in a new issue