Commit 1860ead7 authored by Price, Zach's avatar Price, Zach
Browse files

Fix inheritance for BearerAuth in FUSE client

parent 9bd50ef0
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ from . import config
logger = logging.getLogger(__name__)


class BearerAuth(namedtuple("BearerAuth", ["token", "encoding"])):
class BearerAuth(namedtuple("BearerAuth", ["token", "encoding"]), BasicAuth):
    """Http basic authentication helper."""

    def __new__(cls, token: str = "", encoding: str = "latin1") -> "BearerAuth":
@@ -130,7 +130,7 @@ class ARMFs(HTTPFileSystem):
                cache_type=cache_type or self.cache_type,
                cache_options=cache_options or self.cache_options,
                loop=self.loop,
                auth=BearerAuth(self.auth_data['token'])
                auth=BearerAuth(self.auth_data['id_token']),
                **kw,
            )