-
Notifications
You must be signed in to change notification settings - Fork 7
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
connect() will not forward username if api_key is used instead of password #75
Comments
That If you want to obtain the authenticated user email, should be obtained from the API like this:
|
Ah, right - I see. But shouldn't we copy that value for consistency and compatibility with old-authentication based code, e.g. like stated above in |
Hey @jjdelc - I have updated
I am raising this over here as the error comes from pycrunch. Did I miss anything, maybe the versions/releases not yet maching? |
Released Scrunch 0.11.1 and Pycrunch 0.5.3 that work correctly around this. |
Sorry to be a pain, scrunch 0.11.1 will return a different AttributeError, same code nows results in:
(This now technically belongs to the scrunch repo though). |
I found why my test skipped that check, in all of them the logged user was already the current editor not stepping in that path. I made a fix in master branch. Can you make sure it works of you with current master? |
@jjdelc Thanks! Yep, that seems to work now with the latest scrunch Master. Double-checked password auth again as well, all good now I think. 👍 However, checking the pycrunch session, I think the email/username will still not get returned properly when using the api-key, although the code is supposed to catch that now, right (or maybe I've misunderstood if this should happen at all!)?:
|
@jjdelc Could push a new version tag to the |
I'm debugging this in pycrunch, but Scrunch is not using |
@jjdelc Nope - I don't think it's anywhere in |
@alextanski can you try this release? https://pypi.org/project/pycrunch/ |
@jjdelc 0.5.4 throws:
|
@jjdelc Also, I think if this (the original pycrunch issue here) cannot be fixed without too much effort and bending backwards, we should first add a new release to scrunch (1.11.2 ?) that has the latest changes from Master to make both password and API key auth work at while we transition DP over to their API keys? |
I am on version 0.5.1 and when connecting via api-key I've realized that the username will not get passed over to the session. This will cause issues e.g. in
scrunch
when trying to take editorship usingget_mutable_dataset(..., editor=True)
.will print:
The text was updated successfully, but these errors were encountered: