{"id":18077638,"url":"https://github.com/fukamachi/mito-auth","last_synced_at":"2025-10-10T06:10:33.916Z","repository":{"id":136844132,"uuid":"52075042","full_name":"fukamachi/mito-auth","owner":"fukamachi","description":"User authorization for Mito classes.","archived":false,"fork":false,"pushed_at":"2025-06-04T10:48:27.000Z","size":7,"stargazers_count":19,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-04T18:08:02.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fukamachi.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-19T09:01:04.000Z","updated_at":"2025-06-04T10:48:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7823c3d5-e41a-4ba4-89c4-05608675752b","html_url":"https://github.com/fukamachi/mito-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fukamachi/mito-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fmito-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fmito-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fmito-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fmito-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fukamachi","download_url":"https://codeload.github.com/fukamachi/mito-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fukamachi%2Fmito-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002963,"owners_count":26083487,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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-10-31T11:46:42.943Z","updated_at":"2025-10-10T06:10:33.911Z","avatar_url":"https://github.com/fukamachi.png","language":"Common Lisp","readme":"# mito-auth\n\nMito-auth provides a Mito mixin class for user authorization.\n\n## Usage\n\n```common-lisp\n(use-package :mito-auth)\n\n;; Inherit mito-auth:has-secure-password.\n;; It adds password_hash and password_salt.\n(defclass user (has-secure-password)\n  ((name :col-type (:varchar 60)\n         :initarg :name\n         :accessor user-name)\n   (email :col-type (:varchar 255)\n          :initarg :email\n          :accessor user-email))\n  (:metaclass mito:dao-table-class))\n\n;; Connect to the DB\n(mito:connect-toplevel :sqlite3 :database-name #P\"/tmp/mito-auth.db\")\n\n;; Enable logging\n(setf mito:*mito-logger-stream* t)\n\n;; Ensure the table \"user\" exists\n(mito:ensure-table-exists 'user)\n;-\u003e ;; CREATE TABLE IF NOT EXISTS \"user\" (\n;       \"id\" INTEGER PRIMARY KEY AUTOINCREMENT,\n;       \"name\" VARCHAR(60) NOT NULL,\n;       \"email\" VARCHAR(255) NOT NULL,\n;       \"password_hash\" CHAR(64) NOT NULL,\n;       \"password_salt\" BYTEA NOT NULL,\n;       \"created_at\" TIMESTAMP,\n;       \"updated_at\" TIMESTAMP\n;   ) () [0 rows] | MITO.DAO:ENSURE-TABLE-EXISTS\n\n(mito:create-dao 'user\n                 :name \"Eitaro Fukamachi\"\n                 :email \"e.arrows@gmail.com\"\n                 :password \"c0mmon-l1sp\")\n;-\u003e ;; INSERT INTO \"user\" (\"name\", \"email\", \"password_hash\", \"password_salt\", \"created_at\", \"updated_at\") VALUES (?, ?, ?, ?, ?, ?) (\"Eitaro Fukamachi\", \"e.arrows@gmail.com\", \"63ab35de18dffd24e51a98d5f9c4cd82e665053a73efbe7e006dc37e922d7949\", \"LºÅLm\u0026[FÂÍüîn24\u0012¾\", \"2016-02-19 17:47:10\", \"2016-02-19 17:47:10\") [0 rows] | MITO.DAO:INSERT-DAO\n;=\u003e #\u003cUSER {100461A363}\u003e\n\n(defvar *user* (mito:find-dao 'user :email \"e.arrows@gmail.com\"))\n\n(auth *user* \"c0mmon-l1sp\")\n;=\u003e T\n\n(auth *user* \"wrong-password\")\n;=\u003e NIL\n\n;; To change the password do\n(setf (password *user*) “new-password”)\n;; Then on `mito:save-dao` it will take care of the hashing.\n(mito:save-dao *user*)\n```\n\n## Installation\n\n```common-lisp\n(ql:quickload :mito-auth)\n```\n\n## See Also\n\n* [Mito](https://github.com/fukamachi/mito)\n\n## Author\n\n* Eitaro Fukamachi (e.arrows@gmail.com)\n\n## Copyright\n\nCopyright (c) 2016 Eitaro Fukamachi (e.arrows@gmail.com)\n\n## License\n\nLicensed under the LLGPL License.\n","funding_links":[],"categories":["Expert Systems"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukamachi%2Fmito-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffukamachi%2Fmito-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffukamachi%2Fmito-auth/lists"}