TokenSourceFactory
No overview available.
Methods
GetTokenSource()
@classmethod
def GetTokenSource(
ctx: context.Context,
identity: [Identity](identity.md?sid=flyteplugins_go_tasks_pluginmachinery_google_identity)
) - > oauth2.TokenSource, error
Retrieves an OAuth2 token source for the given identity. This method is used to obtain an authenticated token source that can be used to make authorized API calls.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the request, used for cancellation and deadlines. |
| identity | [Identity](identity.md?sid=flyteplugins_go_tasks_pluginmachinery_google_identity) | The identity for which to retrieve the token source. |
Returns
| Type | Description |
|---|---|
oauth2.TokenSource, error | The OAuth2 token source if successful, otherwise an error. |