flask_oauthlib/provider/oauth1.py
def validate_redirect_uri(self, client_key, redirect_uri, request):
        """Validate if the redirect_uri is allowed by the client."""
        log.debug('Validate redirect_uri %r for %r', redirect_uri, client_key)
        if not request.client:
            request.client = self._clientgetter(client_key=client_key)
        if not request.client:
            return False
        if not request.client.redirect_uris and redirect_uri is None:
            return True
        request.redirect_uri = redirect_uri
        return redirect_uri in request.client.redirect_uris
def validate_redirect_uri(self, client_key, redirect_uri, request):
        log.debug('Validate redirect_uri %r for %r', redirect_uri, client_key)
        if not request.client:
            request.client = self._clientgetter(client_key=client_key)
        if not request.client:
            return False
        if not request.client.redirect_uris and redirect_uri is None:
            return True
        request.redirect_uri = redirect_uri
        return redirect_uri in request.client.redirect_uris
def validate_redirect_uri ( self , client_key , redirect_uri , request ) : log . debug ( 'Validate redirect_uri %r for %r' , redirect_uri , client_key ) if not request . client : request . client = self . _clientgetter ( client_key = client_key ) if not request . client : return False if not request . client . redirect_uris and redirect_uri is None : return True request . redirect_uri = redirect_uri return redirect_uri in request . client . redirect_uris
Validate if the redirect_uri is allowed by the client.
Validate if the redirect_uri is allowed by the client .