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

Python SDK guide local authentication does not work #14165

Closed
gaborhermann opened this issue Nov 29, 2023 · 0 comments · Fixed by #14172
Closed

Python SDK guide local authentication does not work #14165

gaborhermann opened this issue Nov 29, 2023 · 0 comments · Fixed by #14172
Labels
documentation Improvements or additions to documentation

Comments

@gaborhermann
Copy link
Contributor

Is some content missing, wrong or not clear?
The recommended local development connection

server_config = OpenMetadataConnection(hostPort="http://localhost:8585/api")

fails when calling create_or_update:

metadata.ingestion.ometa.client.APIError: Invalid token

This is an issue at least on version 1.2.x.

Describe the solution you'd like

The documentation here should be updated to reflect how to use it:

server_config = OpenMetadataConnection(
    hostPort="http://localhost:8585/api",
    authProvider=AuthProvider.openmetadata,
    securityConfig=OpenMetadataJWTClientConfig(
        jwtToken="<INGESTION-BOT-JWT-TOKEN>"
    )
)

and refer to other parts of the doc that describes how to get the JWT token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant