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

Add an authenticated property #818

Open
danielballan opened this issue Nov 22, 2024 · 0 comments
Open

Add an authenticated property #818

danielballan opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@danielballan
Copy link
Member

danielballan commented Nov 22, 2024

Let's add a property to the Context that lets us easily check whether the connection is authenticated (as opposed to anonymous). Basically, expose this expression as a property:

if (self.api_key is None) and (self.http_client.auth is None):

to enable:

>>> client.context.authenticated  # True or False
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