-
Notifications
You must be signed in to change notification settings - Fork 36
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
Integrate Token Auth in Notebooks #141
Conversation
@@ -171,9 +174,11 @@ def download_file(self, path: str, out_file: str, resource_handle: Optional[Reso | |||
_CHECKSUM_MISMATCH_MSG_TEMPLATE.format(expected_md5_hash, actual_md5_hash) | |||
) | |||
|
|||
def _get_http_basic_auth(self) -> Optional[HTTPBasicAuth]: | |||
def _get_auth(self) -> Optional[requests.auth.AuthBase]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to refactor to rely on AuthBase and have KaggleTokenAuth extend it. Very clean 👏
Did you also test it e2e in a Kaggle notebook? You can run the following in a cell (you probably already know, but sharing just in case):
|
Yes. I did e2e testing here. Added my notes here: It worked as expected. |
Token Auth will implicitly grant permissions to kaggle resources (models and datasets)