Open hkmatsumoto opened 4 years ago
I changed the way to validate the given token.
Now set_token()
sends a post request to /api/auth/user
with the token in header, and if server replies back without errors set_token()
assumes the given token is a valid token.
@vkartik97 Could I have your review? Thanks.
Code coverage recovered.
LGTM 👍 !
Thanks for your reviews! I am not in home now, so I will make those changes in 1-2 hours.
@vkartik97 @yashdusing @Ram81 Do my changes look good?
I am going to bed in a minute, so I create a new commit assuming I should put generate_random_string
in evalai/utils/common.py
.
Looks good to me. @vkartik97
I made changes accordingly to your reviews. @RishabhJain2018 Please take a look.
This pull request adds an auth token validation that collates with an input token with a token obtained from the server.
This pull request is made to finish the Google Code-in task (https://codein.withgoogle.com/dashboard/task-instances/5898939732066304/)