code: def auth_url(self, scope):
          
          params = {
              'response_type': 'code',
              'client_id': self.__client_id,
              'redirect_uri': self.__redirect_uri,
              'scope': scope
          }
  
          if self.__state is not None:
              params['state'] = self.__state
  
          return settings.AUTH_ENDPOINT + '/authorize?' + urllib.urlencode(params)
docs: Gets the url a user needs to access to give up a user token