Repository navigation
feat(auth): faable auth connections create|update|enable|disable|rm + MCP create_auth_connection / update_auth_connection (§552) - #23
Open
boyander wants to merge 1 commit into
Conversation
… un tenant nuevo nace sin conexiones y sus clientes fallan en /authorize con «has no login method available» (§552). create admite passwordless_email, database, sociales y oidc (--client-id, --issuer, endpoints, --scope, --apple-team-id/--apple-key-id); el client secret solo por fichero o stdin (--client-secret-file -) y nunca se imprime, ni con --json. MCP: create_auth_connection (secreto por stdin) y update_auth_connection (on/off), con --writes y solo en local: el token del alojado solo lee conexiones Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new Auth tenant has no connections, so its clients fail at /authorize with "Client … has no login method available". Until now
faable auth connectionsonly hadlist. Backlog §552 (the connections part).CLI
faable auth connections create -n <name> -t <type>: works forpasswordless_email,database, the social providers andoidc/custom. It takes--enabled/--no-enabled(on by default),--client-id,--client-secret-file <path|->,--issuer,--authorize-url,--token-url,--userinfo-url,--jwks-url,--scope(repeatable),--organization,--disable-signup,--apple-team-id,--apple-key-idand--json.[hidden], also with--json.passwordless_emailordatabaseare refused withusagebefore any request is made.update <connection> [--enabled|--no-enabled] [--name], plusenableanddisableas shortcuts. A connection can be given by id or by name, using the same resolver asclients update --disable-connection.rm <connection>asks for confirmation;--yesskips it, and in non-interactive mode it fails withconfirmation_required.MCP
create_auth_connection: the secret goes on stdin and is never put in argv. The shape it returns has no secret.update_auth_connection: turns a connection on or off.--writesand are local only, because the hosted token only hasread:connections(apitenant_access.ts).Tests
body.test.ts: the request body, the secret redaction and the Apple fields.tools.connections.test.ts: the gating, the argv/stdin contract and that no secret comes back.machine_mode: usage errors happen before any request.src/lib/stdin.test.tsfailed once under load and passes when re-run on its own. lint and build are clean.account_6afdd7dad7f2cd1058fbab21: created a disabledgithubconnection with a fake id and a secret from stdin (the secret was not in the output), renamed it, disabled it, checked thatrmwithout--yeswas refused, then deleted it. The tenant is back to its singleemailconnection.After the merge
@faable/faablein themcprepo and republish to the MCP registry. The new tools are local-only, so the hosted catalog does not change.