Skip to content

Commit

Permalink
Merge 2f42009 into e720baf
Browse files Browse the repository at this point in the history
  • Loading branch information
clintecker committed Jun 21, 2013
2 parents e720baf + 2f42009 commit 85145cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Ondrej Slinták
Mackenzie Thompson
Hsiaoming Yang
Devin Sevilla
Clint Ecker
8 changes: 5 additions & 3 deletions examples/skeleton_oauth2_web_application_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ def validate_bearer_token(self, token, scopes, request):

# Token refresh request

def confirm_scopes(self, refresh_token, scopes, request, *args, **kwargs):
# If the client requests a set of scopes, assure that those are the
# same as, or a subset of, the ones associated with the token earlier.
def get_original_scopes(self, refresh_token, request, *args, **kwargs):
# Obtain the token associated with the given refresh_token and
# return its scopes, these will be passed on to the refreshed
# access token if the client did not specify a scope during the
# request.
pass


Expand Down

0 comments on commit 85145cb

Please sign in to comment.