(self, request)
Validate the request. Raises an AuthorizationException if the
        request fails authorization, or a MissingRedirectURI if no
        redirect_uri is available.

        **Args:**

        * *request:* Django HttpRequest object.

        *Returns None*
Validate the request. Raises an AuthorizationException if the
        request fails authorization, or a MissingRedirectURI if no
        redirect_uri is available.
Validate the request . Raises an AuthorizationException if the request fails authorization or a MissingRedirectURI if no redirect_uri is available .
def validate(self, request):
        """Validate the request. Raises an AuthorizationException if the
        request fails authorization, or a MissingRedirectURI if no
        redirect_uri is available.

        **Args:**

        * *request:* Django HttpRequest object.

        *Returns None*"""
        self.response_type = request.REQUEST.get('response_type')
        self.client_id = request.REQUEST.get('client_id')
        self.redirect_uri = request.REQUEST.get('redirect_uri')
        self.scope = request.REQUEST.get('scope')
        if self.scope is not None:
            self.scope = set(self.scope.split())
        self.state = request.REQUEST.get('state')
        self.user = request.user
        self.request = request
        try:
            self._validate()
        except AuthorizationException, e:
            self._check_redirect_uri()
            self.error = e
            raise e
        self.valid = True
def validate ( self , request ) : self . response_type = request . REQUEST . get ( 'response_type' ) self . client_id = request . REQUEST . get ( 'client_id' ) self . redirect_uri = request . REQUEST . get ( 'redirect_uri' ) self . scope = request . REQUEST . get ( 'scope' ) if self . scope is not None : self . scope = set ( self . scope . split ( ) ) self . state = request . REQUEST . get ( 'state' ) self . user = request . user self . request = request try : self . _validate ( ) except AuthorizationException , e : self . _check_redirect_uri ( ) self . error = e raise e self . valid = True