{"id":15497198,"url":"https://github.com/jwerle/sauth","last_synced_at":"2025-06-22T15:36:11.675Z","repository":{"id":20385188,"uuid":"23660881","full_name":"jwerle/sauth","owner":"jwerle","description":"Command line social authentication strategies","archived":false,"fork":false,"pushed_at":"2014-09-10T17:03:19.000Z","size":156,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T13:08:58.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-04T12:08:02.000Z","updated_at":"2014-09-11T03:06:27.000Z","dependencies_parsed_at":"2022-07-25T07:46:55.042Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/sauth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jwerle/sauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fsauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fsauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fsauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fsauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/sauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fsauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260703854,"owners_count":23049450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T08:31:37.520Z","updated_at":"2025-06-22T15:36:06.657Z","avatar_url":"https://github.com/jwerle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"sauth\n=====\n\nCommand line social authentication strategies\n\n## install\n\n```sh\n$ npm i sauth -g\n```\n\n## about\n\n*sauth* makes use of strategies for authentication. The goal of a\nstrategy is to authenticate a user with some type of authentication\ncontrol flow like OAuth. A strategy is devised into asynchronous phases.\nThe end result is usually to output an access token and/or user\ninformation in the terminal. Implementing a strategy is fairly trivial\nand only involves writing a few interface functions. See\n[sauth-instagram](https://github.com/jwerle/sauth-instagram) for a\nsimple example.\n\n## usage\n\n`sauth(1)` is meant to be used as a command line utility. The basic\nusage is:\n\n```sh\nusage: sauth [-hV] \u003cstrategy\u003e [-c config] [...args]\n```\n\nwhere `strategy` is the name of the strategy to use. It is required\ninternally as `sauth-{NAME}` and should exists in one of the paths found\nin `module.paths`. Arguments are passed to the strategy as an object and\nare up to the strategy implementor. The argument `--client-id=1234` is\nserialized into an object `{'client-id': 1234}` and passed to the\nstrategy as the fist argument. The second argument is a callback that\nshould be invoked after the strategy has completed.\n\nThe `-c` or `--config` argument is a path to a JSON or javascript file\nthat will be the arguments passed to the strategy itself. This makes it\nconvenient for running strategies from the command line.\n\n**example:**\n\n```json\n{\n  \"client_id\": \"1234\",\n  \"client_secret\": \"5678\",\n  \"redirect_uri\": \"http://localhost:9999/ig/auth\",\n  \"port\": 9999\n}\n```\n\n```sh\n$ sauth instagram -c ig-strategy-conf.json\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fsauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Fsauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fsauth/lists"}