diff options
author | Clint Ecker <me@clintecker.com> | 2013-06-21 09:57:48 -0500 |
---|---|---|
committer | Clint Ecker <me@clintecker.com> | 2013-06-21 09:57:48 -0500 |
commit | 2f42009a5e6a4893c4272b397b1456a225e74d5f (patch) | |
tree | affe4245c3b0e5252866187c959c49a892b0b512 /examples | |
parent | e720baf5b38fe722dfa19b76d0ebbb4d5fbb20ec (diff) | |
download | oauthlib-2f42009a5e6a4893c4272b397b1456a225e74d5f.tar.gz |
changing server example to reflect changes to request validator in 035d46c73ab7feb4719e4642dafc9bb21aa8bd2c
Diffstat (limited to 'examples')
-rw-r--r-- | examples/skeleton_oauth2_web_application_server.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/skeleton_oauth2_web_application_server.py b/examples/skeleton_oauth2_web_application_server.py index 0d5a52d..04ce4e4 100644 --- a/examples/skeleton_oauth2_web_application_server.py +++ b/examples/skeleton_oauth2_web_application_server.py @@ -97,9 +97,11 @@ class SkeletonValidator(RequestValidator): # 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 |