Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Where is the code to periodically refresh the auth token? #251

Closed
ivarec opened this issue Sep 4, 2021 · 2 comments
Closed

Where is the code to periodically refresh the auth token? #251

ivarec opened this issue Sep 4, 2021 · 2 comments

Comments

@ivarec
Copy link

ivarec commented Sep 4, 2021

I think I'm being affected by this old issue: #116. The symptoms and the error messages are exactly the same.

After digging up a little, I found the PR that was supposed to have fixed this back in 2019: #137

However, I can't find this PR's code anywhere in master. Am I missing something?

Thanks in advance!

@serbrech
Copy link
Member

serbrech commented Sep 8, 2021

r.cancelAuthRefresh, err = r.namespace.negotiateClaim(ctx, client, r.entityPath)

the negotiateClaim starts a goroutine in the background that refreshes the claim using the auth token.

Here is the code :

ns.initRefresh.Do(func() {

Note that there was a recent fix to retry on failure:
#245

@richardpark-msft
Copy link
Member

(NOTE: We've moved development of this package to the azure-sdk-for-go repo link.

Closing as it appears the question was answered and a fix had been made in the same area.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants