diff options
author | Brendan McCollam <bmccollam@uchicago.edu> | 2016-12-22 13:27:55 +0000 |
---|---|---|
committer | Brendan McCollam <bmccollam@uchicago.edu> | 2016-12-22 15:00:33 +0000 |
commit | d0a59bd8a4fbb44f2ad0218becfbccf49d91cb4d (patch) | |
tree | fc39af3d0c5aaf33d68323097d79dfeaa3b4ffd1 /oauthlib/oauth2/rfc6749/grant_types/refresh_token.py | |
parent | c6d84da649789151a274e091df3f23e99e92dd0c (diff) | |
download | oauthlib-d0a59bd8a4fbb44f2ad0218becfbccf49d91cb4d.tar.gz |
Refactor custom validators registration
Diffstat (limited to 'oauthlib/oauth2/rfc6749/grant_types/refresh_token.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/grant_types/refresh_token.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py index def630c..396668b 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py +++ b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py @@ -76,7 +76,7 @@ class RefreshTokenGrant(GrantTypeBase): if request.grant_type != 'refresh_token': raise errors.UnsupportedGrantTypeError(request=request) - for validator in self._token_validators_run_before_standard_ones: + for validator in self.custom_validators.pre_token: validator(request) if request.refresh_token is None: @@ -127,5 +127,5 @@ class RefreshTokenGrant(GrantTypeBase): else: request.scopes = original_scopes - for validator in self._token_validators_run_after_standard_ones: + for validator in self.custom_validators.post_token: validator(request) |