Skip to content

Commit

Permalink
ammeded comment for validate_redirect_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Chez committed Dec 1, 2012
1 parent 15be5b6 commit 9ecbb08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oauthlib/oauth2/draft25/grant_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ def validate_token_request(self, request):
if not self.request_validator.validate_refresh_token(request.client, request.refresh_token):
raise errors.InvalidRequestError()

# Check that the redirect uri is the same as the one passed in with
# Authorisation end point.
# validate_redirect_uri must be provided by the
# subclass validator and Check that the redirect uri is the same
# as the one passed in with Authorisation end point.
redirect_uri = getattr(request, 'refresh_token', None)
if not self.request_validator.validate_redirect_uri(request.client, redirect_uri):
raise errors.UnauthorizedClientError()
Expand Down

0 comments on commit 9ecbb08

Please sign in to comment.