{"id":19241045,"url":"https://github.com/binocarlos/shadowfax","last_synced_at":"2026-06-22T07:31:34.912Z","repository":{"id":16502155,"uuid":"19255025","full_name":"binocarlos/shadowfax","owner":"binocarlos","description":"angular login/register and general account related directives - works well with gandalf","archived":false,"fork":false,"pushed_at":"2014-10-08T18:18:45.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T21:11:48.005Z","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/binocarlos.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-04-28T21:43:44.000Z","updated_at":"2014-10-07T16:50:15.000Z","dependencies_parsed_at":"2022-08-25T15:02:37.914Z","dependency_job_id":null,"html_url":"https://github.com/binocarlos/shadowfax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binocarlos/shadowfax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fshadowfax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fshadowfax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fshadowfax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fshadowfax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binocarlos","download_url":"https://codeload.github.com/binocarlos/shadowfax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fshadowfax/sbom","scorecard":{"id":238941,"data":{"date":"2025-08-11","repo":{"name":"github.com/binocarlos/shadowfax","commit":"4a3edddcfd908944896e79fd72d5af59a09d7169"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T06:16:54.834Z","repository_id":16502155,"created_at":"2025-08-17T06:16:54.834Z","updated_at":"2025-08-17T06:16:54.834Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34639704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T17:09:57.886Z","updated_at":"2026-06-22T07:31:34.880Z","avatar_url":"https://github.com/binocarlos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"shadowfax\n=========\n\nangular login/register form directives - works well with [gandalf](https://github.com/binocarlos/gandalf)\n\n## install\n\nInstall the module to your project:\n\n```\n$ npm install shadowfax --save\n```\n\nInclude it in your app.js:\n\n```js\nvar angular = require('angular-bsfy')\nvar shadowfax = require('shadowfax')\n\nvar app = angular.module('myApp',[\n    shadowfax.name\n])\n```\n\nThen compile with [browserify](https://github.com/substack/node-browserify) and [brfs](https://github.com/substack/brfs):\n\n```bash\n$ browserify -t brfs app.js \u003e bundle.js\n```\n\n## usage\n\nShadowfax directives use bootstrap markup - use them inside a controller that includes the shadowfax module.\n\n```js\nvar angular = require('angular-bsfy')\nvar shadowfax = require('shadowfax')\n\nvar app = angular.module('myApp',[\n    shadowfax.name\n])\n\napp.controller('MyCtrl', function($scope){\n\t$scope.$on('shadowfax:login', function($ev, data){\n\t\t// handle login with data.username \u0026 data.password\n\t})\n})\n```\n\nThen you can use shadowfax directives from your pages:\n\n```html\n\u003cbody ng-app=\"MyApp\" ng-controller=\"MyCtrl\"\u003e\n\u003ch3\u003eLogin\u003c/h3\u003e\n\n\u003cdiv\u003e\n\t\u003cshadowfax-login /\u003e\n\u003c/div\u003e\n\n\u003ch3\u003eRegister\u003c/h3\u003e\n\n\u003cdiv\u003e\n\t\u003cshadowfax-register\u003e\n\n\t\t\u003c!--\n\t\t\tYou can transclude extra form items into the register form\n\t\t\tSet the model to be property of data\n\t\t --\u003e\n\t\t\u003cdiv class=\"form-group\"\u003e\n      \u003clabel class=\"col-md-2 control-label\" for=\"extra\"\u003eExtra\u003c/label\u003e\n      \u003cdiv class=\"col-md-8\"\u003e\n        \u003cinput type=\"text\" class=\"form-control\" id=\"extra\" name=\"extra\" placeholder=\"Confirm Password\" ng-model=\"data.extra\" required\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n\n\t\u003c/shadowfax-register\u003e\n\u003c/div\u003e\n\n\u003cscript src=\"build.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\n## directives\n\n#### `shadowfax-login`\n\nShow a login form with username \u0026 password fields.\n\n#### `shadowfax-mini-login`\n\nShow a compact login form with username \u0026 password fields.\n\n#### `shadowfax-register`\n\nShow a register form with username, email \u0026 password fields.\n\nIt will render these fields automatically:\n\n * username\n * email\n * password\n\nThe register directive is transcluded so you can pass extra form fields into it.\n\n#### `shadowfax-details`\n\nShow a details form that is the same as the register form but will update a shadowfax:save event instead.\n\nIt is transcluded like the register form.\n\n## events\n\nListen to these events in the scope to handle the backend logic how you want.\n\n##### `$on('shadowfax:login', function($ev, data){})`\n\nCalled when the `login` button is pressed - data is an object:\n\n```js\n{\n\tusername:\"bob\",\n\tpassword:\"password\"\n}\n```\n\nAn example of hooking up custom logic to deal with the login event:\n\n```js\napp.controller('MyCtrl', function($scope, $http){\n\t$scope.$on('shadowfax:login', function($ev, data){\n\t\t$http({\n\t\t\turl:'/auth/login',\n\t\t\tmethod:'POST',\n\t\t\tdata:data\n\t\t})\n\t\t.success(function(data){\n\t\t\t// user has logged in\n\t\t})\n\t\t.error(function(data){\n\t\t\t// problem\n\t\t})\n\t})\n})\n```\n\n##### `$on('shadowfax:register', function($ev, data){})`\n\nCalled when the `register` button is pressed - data is an object:\n\n```js\n{\n\tusername:\"bob\",\n\tfullname:\"Bob Bob\",\n\temail:\"bob@bob.com\",\n\tpassword:\"password\"\n}\n```\n\nAn example of hooking up custom logic to deal with the login event:\n\n```js\napp.controller('MyCtrl', function($scope, $http){\n\t$scope.$on('shadowfax:register', function($ev, data){\n\t\t$http({\n\t\t\turl:'/auth/register',\n\t\t\tmethod:'POST',\n\t\t\tdata:data\n\t\t})\n\t\t.success(function(data){\n\t\t\t// user has registered\n\t\t})\n\t\t.error(function(data){\n\t\t\t// problem\n\t\t})\n\t})\n})\n```\n\n##### `$on('shadowfax:save', function($ev, data){})`\n\nCalled when the details form is saved - essentially the same as register but used for an existing user to update their details.\n\n## license\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fshadowfax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinocarlos%2Fshadowfax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fshadowfax/lists"}