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 authorization methods in auth.py #113

Merged
merged 7 commits into from
Nov 21, 2023
Merged

Conversation

amritghimire
Copy link
Contributor

This commit introduces two new methods, 'start_device_login' and 'check_token_authorization', in the auth.py file. These methods initiate the device login process for Studio and check the token authorization using a device code. Used the urllib, requests, and os modules, and defined the necessary exceptions.

This new module will be used in iterative/dvc#10074

This commit introduces two new methods, 'start_device_login' and 'check_token_authorization', in the auth.py file. These methods initiate the device login process for Studio and check the token authorization using a device code. Used the urllib, requests, and os modules, and defined the necessary exceptions.

This new module will be used in iterative/dvc#10074
@amritghimire amritghimire added the enhancement New feature or request label Nov 10, 2023
@amritghimire amritghimire requested a review from a team November 10, 2023 12:40
@amritghimire amritghimire self-assigned this Nov 10, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
tests/test_auth.py 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!

@amritghimire amritghimire merged commit 4b19b08 into iterative:main Nov 21, 2023
14 checks passed
@amritghimire amritghimire deleted the auth branch November 21, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants