Expand description
Auth provider and frontend auth capabilities (internal/pluginhost/auth_provider.go, adapters_auth.go).
A plugin auth is a PluginAuth: Go’s coreauth.Auth fields that plugins set, with
its storage (pluginTokenStorage) as raw JSON merged with metadata on save. The
server maps it onto its credential store.
Structs§
- Auth
View - An existing credential as the plugin sees it (Go
coreauth.Authread side). - Frontend
Auth Outcome - A frontend request a plugin accepted (Go
sdkaccess.Result). - Parse
Auths Result - Go
ParseAuths’([]*Auth, handled, error). - Plugin
Auth - Go
coreauth.Authas a plugin produces it.
Constants§
Functions§
- atomic_
write - Go
atomicWriteFile: a 0600 temp file besidepath, renamed over it. - auth_
id_ for_ path - Go
authIDForPath: relative to the auth dir when inside it, slash-separated. - canonical_
metadata_ key - Go
CanonicalCredentialMetadataKey. - normalize_
credential_ metadata - Go
NormalizeCredentialMetadata: legacy keys move to their canonical name unless the canonical one is already present. - refreshed_
auth_ data - Go
RefreshAuth’s defaults: the refreshed record inherits what the plugin left out.