Open Ram81 opened 3 years ago
@Ram81 I would like to work on this issue. But I am a little unfamiliar with the working of this method. From what I see, this method takes the auth token as input and returns the same token again as output?
Can you help me with this?
@ShauryaAg the method accepts a expiring auth token as a parameter and makes API call to evalai backend to get an Access Token. Expiring auth tokens expire when user logs out but the access token can be used to make api calls irrespective of login state
@Ram81 sorry about the confusion, my local clone was not up-to-date.
I would like to take this issue.
@ShauryaAg Sure, go ahead.
@Ram81 The test for get_user_access_token
are already written in test_get_token.py. As get_token
reads from the same file (~/.evalai/token.json
) as set during login
(which calls utils.auth.get_user_auth_token_by_login
and utils.auth.get_user_access_token
).
Description
Add tests for
get_user_access_token
method inevalai/utils/auth.py
.