Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Include support for KNOX gateway authentication mechanism #76

Open
Kondasamy opened this issue May 8, 2019 · 2 comments
Open

Include support for KNOX gateway authentication mechanism #76

Kondasamy opened this issue May 8, 2019 · 2 comments

Comments

@Kondasamy
Copy link

If Oozie is added with Knox gateway support, the below constructor in OozieClient class lacks support for Basic authentication.

    def __init__(self, url=None, user=None, timeout=None, verbose=True, **_):
        self.logger = logging.getLogger('pyoozie.OozieClient')
        oozie_url = (url or 'http://localhost').rstrip('/')
        if not oozie_url.endswith('/oozie'):
            oozie_url += '/oozie'
        self._url = oozie_url
        self._user = user
        self._timeout = timeout or 30
        self._verbose = verbose  # Note: change default for verbose!
        self._stats = OozieClient.Stats()
        self._valid_server = False
@cfournie
Copy link
Contributor

cfournie commented May 8, 2019

We could provide the ability to pass in a session object so you could configure whichever authentication scheme you desired.

@Kondasamy
Copy link
Author

Yeah, that would work. Better than customising just for Basic authentication. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants