forked from LBRYCommunity/lbry-sdk
daemon/auth py3 conversion, this breaks the client for now
This commit is contained in:
parent
0087b16912
commit
cc970c499b
3 changed files with 4 additions and 6 deletions
|
@ -1,4 +1,2 @@
|
||||||
from lbrynet import custom_logger
|
from lbrynet import custom_logger
|
||||||
import Components # register Component classes
|
import Components # register Component classes
|
||||||
from lbrynet.daemon.auth.client import LBRYAPIClient
|
|
||||||
get_client = LBRYAPIClient.get_client
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
import urlparse
|
from six.moves.urllib import parse as urlparse
|
||||||
import json
|
import json
|
||||||
import inspect
|
import inspect
|
||||||
import signal
|
import signal
|
||||||
|
@ -20,9 +20,8 @@ from lbrynet.core import utils
|
||||||
from lbrynet.core.Error import ComponentsNotStarted, ComponentStartConditionNotMet
|
from lbrynet.core.Error import ComponentsNotStarted, ComponentStartConditionNotMet
|
||||||
from lbrynet.core.looping_call_manager import LoopingCallManager
|
from lbrynet.core.looping_call_manager import LoopingCallManager
|
||||||
from lbrynet.daemon.ComponentManager import ComponentManager
|
from lbrynet.daemon.ComponentManager import ComponentManager
|
||||||
|
from lbrynet.daemon.auth.util import APIKey, get_auth_message, LBRY_SECRET
|
||||||
from lbrynet.undecorated import undecorated
|
from lbrynet.undecorated import undecorated
|
||||||
from .util import APIKey, get_auth_message
|
|
||||||
from .client import LBRY_SECRET
|
|
||||||
from .factory import AuthJSONRPCResource
|
from .factory import AuthJSONRPCResource
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -189,7 +188,7 @@ class AuthJSONRPCServer(AuthorizedBase):
|
||||||
the server will randomize the shared secret and return the new value under the LBRY_SECRET header, which the
|
the server will randomize the shared secret and return the new value under the LBRY_SECRET header, which the
|
||||||
client uses to generate the token for their next request.
|
client uses to generate the token for their next request.
|
||||||
"""
|
"""
|
||||||
implements(resource.IResource)
|
#implements(resource.IResource)
|
||||||
|
|
||||||
isLeaf = True
|
isLeaf = True
|
||||||
allowed_during_startup = []
|
allowed_during_startup = []
|
||||||
|
|
|
@ -9,6 +9,7 @@ import logging
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
API_KEY_NAME = "api"
|
API_KEY_NAME = "api"
|
||||||
|
LBRY_SECRET = "LBRY_SECRET"
|
||||||
|
|
||||||
|
|
||||||
def sha(x):
|
def sha(x):
|
||||||
|
|
Loading…
Reference in a new issue