Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcert/v4/pkg: Expose API for refreshing the access token in Connector interface #341

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KalpitTiwari03
Copy link

"RefreshAccessToken()" api is not exposed in Connector interface at the moment. Adding the same by introducing a wrapper over "RefreshAccessToken()" which returns an interface instead of TPP specific struct.

Other possible approach can be - moving out the struct "OauthRefreshAccessTokenResponse" to endpoint.go file and add
"RefreshAccessToken()" to Connector interface. But the struct is TPP specific so placing it in endpoint pkg does not look right therefor going with current approach.

RefreshAccessToken() api is not exposed in Connector interface
at the moment. Adding the same by introducing a wrapper over
RefreshAccessToken() which returns an interface instead of tpp
specific struct.

Other possible approach can be - moving out the struct
OauthRefreshAccessTokenResponse to endpoint.go file and add
RefreshAccessToken() to Connector interface. But the stuct
is TPP specific so placing it in endpoint pkg does not look
right therefor going with current approac
@KalpitTiwari03
Copy link
Author

Could I please get a review here?

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

Successfully merging this pull request may close these issues.

None yet

1 participant