wjohnson / pyapacheatlas

A python package to help work with the apache atlas REST APIs
https://wjohnson.github.io/pyapacheatlas-docs/latest/
MIT License
170 stars 97 forks source link

Unable to authenticate Atlas server using kerberos authentication #290

Open Rems143 opened 1 month ago

Rems143 commented 1 month ago

Describe the bug I am using pyapacheatlas to communicate to my Apache Atlas server. I am trying to establish connection using kerberos. Currently there is no class under pyapacheatlas.auth. I found KerberosAuthentication class and its been not showing in this project package.

To Reproduce Steps to reproduce the behavior: add following code

from pyapacheatlas.auth import KerberosAuthentication from pyapacheatlas.core import AtlasClient

Initialize Kerberos Authentication

auth = KerberosAuthentication()

Create Atlas Client with Kerberos Authentication

client = AtlasClient(endpoint_url=atlas_url, authentication=auth)

Expected behavior I should be able to establish connection. However I am getting issue - importError: cannot import name 'Kerberos Authentication' from 'apache atlas.auth'` Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

wjohnson commented 1 month ago

Hi, @Rems143 this package does not currently support Kerberos Authentication. You might be thinking of another Apache Atlas python package? This one only support Azure and Basic Auth.

I'd be glad to accept a PR to wrap any Kerberos authentication that you might need!

Rems143 commented 1 month ago

Hi, @Rems143 this package does not currently support Kerberos Authentication. You might be thinking of another Apache Atlas python package? This one only support Azure and Basic Auth.

I'd be glad to accept a PR to wrap any Kerberos authentication that you might need!

Hi @wjohnson , okay. Thanks for the confirmation.