Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Signer ¶
type Signer interface { ServiceAccount(context.Context) string SignBlob(context.Context, []byte) (string, []byte, error) SignJwt(context.Context, string) (string, error) }
func SmartSigner ¶
SmartSigner create signer for ADC with optional impersonation. Impersonation setting is supplied from below in descending order of priority.
- options e.g. signer.WithTargetPrincipal, signer.WithDelegates
- `CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT` environment variable
If impersonation is not applied, all credentials except App Engine 1st gen(only Go 1.11) and Service Account Key need a Token Creator role to themselves.
Click to show internal directories.
Click to hide internal directories.