Commit 2d5a724c authored by Jay Weisskopf's avatar Jay Weisskopf Committed by Sander van Harmelen

Handle tokens with no expiration (#393)

parent c516c682
......@@ -357,6 +357,9 @@ func NewBasicAuthClient(httpClient *http.Client, endpoint, username, password st
for {
client.token = t.AccessToken
if t.ExpiresIn == 0 {
return // Token does not expire
}
if t.ExpiresIn > 60 {
t.ExpiresIn -= 60
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment