Documentation ¶
Index ¶
- func NewCredentials(clientID, clientSecret string) *oauth2.Config
- func NewGrpcConnection(token *oauth2.Token, developerToken string, loginCustomerID string) (*grpc.ClientConn, context.Context, error)
- func NewPartialToken(refreshToken string) *oauth2.Token
- func RefreshToken(creds *oauth2.Config, token *oauth2.Token, ctx ...context.Context) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentials ¶
NewCredentials creates an oauth2 credentials config from a valid client id and secret
func NewGrpcConnection ¶
func NewGrpcConnection(token *oauth2.Token, developerToken string, loginCustomerID string) (*grpc.ClientConn, context.Context, error)
NewGrpcConnection creates a new authenticated grpc client and context with authentication headers
func NewPartialToken ¶
NewPartialToken creates a partial oauth2 token from a valid refresh token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.