-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
area:corefd5 core libraryfd5 core libraryaudit-trailAudit trail / provenance chain featureAudit trail / provenance chain featureeffort:medium1-4 hours1-4 hoursfeatureNew feature or requestNew feature or request
Description
Parent: #161
Goal
Create fd5.identity module for loading and managing user identity from ~/.fd5/identity.toml.
Spec
Identitydataclass:type(orcid/github/email/anonymous),id(string),name(string)load_identity() -> Identity— read from~/.fd5/identity.toml, return anonymous if missingsave_identity(identity: Identity)— write to~/.fd5/identity.tomlidentity_to_dict(identity: Identity) -> dict— for embedding in audit entries- Support for
typevalues:orcid,github,email,anonymous
TOML format
[identity]
type = "orcid"
id = "0000-0002-1825-0097"
name = "Lars Gerchow"TDD
- Test load from valid TOML file
- Test load returns anonymous when file missing
- Test save + load round-trip
- Test validation of identity types
- Test ORCID format validation (XXXX-XXXX-XXXX-XXXX)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:corefd5 core libraryfd5 core libraryaudit-trailAudit trail / provenance chain featureAudit trail / provenance chain featureeffort:medium1-4 hours1-4 hoursfeatureNew feature or requestNew feature or request