data/commands/builtin/xaa_idp_command library

Classes

XaaIdpCommand
The /mcp-xaa command — manage XAA (SEP-990) IdP connection.
XaaIdpSettings
Represents the XAA IdP settings stored in user settings.

Functions

clearIdpClientSecret(String issuer) → void
Clear IdP client secret from the keychain.
clearIdpIdToken(String issuer) → void
Clear cached IdP id_token.
getCachedIdpIdToken(String issuer) String?
Get cached IdP id_token.
getIdpClientSecret(String issuer) String?
Get IdP client secret from the keychain.
getXaaIdpSettings() Future<XaaIdpSettings?>
Get the current XAA IdP settings from user settings, or null if not configured.
issuerKey(String issuer) String
Normalize an issuer URL to a consistent keychain key. Strips trailing slashes and lowercases the host portion.
saveIdpClientSecret(String issuer, String secret) → ({bool success, String? warning})
Save IdP client secret to the keychain. Returns (success, warning) tuple.
saveIdpIdTokenFromJwt(String issuer, String jwt) int
Save an id_token JWT directly to cache. Returns the expiration timestamp.
updateSettingsForSource(Map<String, dynamic> updates) Future<String?>
Update user settings with the given partial updates. Returns an error message string or null on success.