Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants