14.1 Beta 1 SDK
IPluginCredentialRefreshStore14.1 Beta
public interface Unbroken.LaunchBox.Plugins.Connections.IPluginCredentialRefreshStore : Unbroken.LaunchBox.Plugins.Connections.IPluginCredentialStoreSupports atomic credential snapshots and conditional refresh persistence.
Remarks
Query this optional interface on the injected credential store. Do not fall back to an unconditional save after remote refresh. Providers still coordinate service-side token rotation.Inheritance and interfaces
Methods
System.Threading.Tasks.Task<Unbroken.LaunchBox.Plugins.Connections.PluginCredentialSnapshot?> GetSnapshotAsync(string ownerId, string connectionId, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task<bool> TryUpdateConnectionAsync(Unbroken.LaunchBox.Plugins.Connections.PluginCredentialSnapshot snapshot, Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection connection, System.Collections.Generic.IReadOnlyDictionary<string, string?> values, System.Threading.CancellationToken cancellationToken)
GetSnapshotAsync 14.1 Beta
System.Threading.Tasks.Task<Unbroken.LaunchBox.Plugins.Connections.PluginCredentialSnapshot?> GetSnapshotAsync(string ownerId, string connectionId, System.Threading.CancellationToken cancellationToken)TryUpdateConnectionAsync 14.1 Beta
System.Threading.Tasks.Task<bool> TryUpdateConnectionAsync(Unbroken.LaunchBox.Plugins.Connections.PluginCredentialSnapshot snapshot, Unbroken.LaunchBox.Plugins.Connections.PluginStoredConnection connection, System.Collections.Generic.IReadOnlyDictionary<string, string?> values, System.Threading.CancellationToken cancellationToken)Updates an existing connection only if its snapshot is still current in this store.
snapshot14.1 Beta- The snapshot read before remote work.
connection14.1 Beta- The updated descriptor with the same owner and connection handle.
values14.1 Beta- Partial value changes, using the same null/removal rules as ordinary saves.
cancellationToken14.1 Beta- Cancels persistence; completed writes are not rolled back.