A human-friendly DSL for ATProto Lexicons
26
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add mlf login / mlf logout commands + credentials file #7

open opened by stavola.xyz targeting main from feat/publishing

Plaintext TOML credential storage at ~/.config/mlf/credentials.toml (global) and /.mlf/credentials.toml (project-local, opt-in via --project, meant for CI). Files are written mode 0600 on Unix. One [pds] section carrying handle + app_password + did/pds cache; one [dns.] section per configured DNS provider whose fields come from the plugin's options_schema and are preserved on round-trip.

mlf login [pds|dns ] validates credentials before writing — PDS login runs handle→DID→PDS resolution via mlf-atproto::identity (adding resolve_handle_to_did with DNS+well-known fallback) and calls createSession; DNS plugin login spawns the plugin binary, collects schema fields via --flag=value → prompt fallback, forwards them via init, and asks the plugin to validate via its login op. Credentials returned from login replace whatever we collected so plugins can normalise them.

mlf logout [pds|dns []] mirrors the login tree and rewrites the credentials file minus the targeted sections. --non-interactive on login errors with the exact flag name for any missing field instead of prompting.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:tahmjtpwnkuhopngqe5q7jp2/sh.tangled.repo.pull/3mjqnd22z6k22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
stavola.xyz submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments