-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
I'm working on a client that needs to refresh tokens in a special way, so I'm implementing my own TokenSource. The strange thing seems to be that, although the TokenSource interface is exported, I can't actually reuse the provided logic to refresh a token, as retrieveToken is unexported and it calls an internal-only function: internal.RetrieveToken(), even though all the parameters are exported values too.
Line 154 in c453e0c
| tk, err := internal.RetrieveToken(ctx, c.ClientID, c.ClientSecret, c.Endpoint.TokenURL, v) |
I'd like to use either retrieveToken() or internal.RetrieveToken() as I'm essentially wrapping it differently than the built-in token refresher.
Can we potentially export retrieveToken() or make internal.RetrieveToken() usable by external packages?
jscottsf and jarangutan
Metadata
Metadata
Assignees
Labels
No labels