Repository navigation
v1.2.0 — SupportsCredentialForm interface
Adds an optional capability interface so AskMyDocs (and any host) can render a native admin form for credential-based connectors (host/port/username/password — e.g. IMAP), instead of being limited to the OAuth-redirect flow.
Padosoft\AskMyDocsConnectorBase\Contracts\SupportsCredentialForm—credentialFormSchema(): arrayadvertises the fields the host should render.Padosoft\AskMyDocsConnectorBase\Support\CredentialField— readonly value object (name/label/type/target/required/secret/default/options/showIf/help/group) withtoArray().
Field target tells the host where to store each value (connection/config → config_json, auth_mode/provider → installation, secret → routed through handleOAuthCallback to the encrypted vault).
Purely additive and backward compatible — OAuth-only connectors are unaffected and need no changes. 72 tests, PHPStan + Pint clean.