{"id":28194282,"url":"https://github.com/humansinput/authsystem","last_synced_at":"2026-01-24T18:32:37.916Z","repository":{"id":128774717,"uuid":"250574023","full_name":"humansinput/authsystem","owner":"humansinput","description":"Tcl library that handles user authorization and registration. Uses TDBC to access the database.","archived":false,"fork":false,"pushed_at":"2019-09-28T14:38:35.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-16T13:11:51.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/humansinput.png","metadata":{"files":{"readme":"README.asciidoc","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}},"created_at":"2020-03-27T15:40:32.000Z","updated_at":"2025-01-21T08:12:03.000Z","dependencies_parsed_at":"2023-03-15T00:17:08.165Z","dependency_job_id":null,"html_url":"https://github.com/humansinput/authsystem","commit_stats":null,"previous_names":["humansinput/authsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/humansinput/authsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fauthsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fauthsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fauthsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fauthsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humansinput","download_url":"https://codeload.github.com/humansinput/authsystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humansinput%2Fauthsystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28734308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-05-16T13:11:48.107Z","updated_at":"2026-01-24T18:32:37.899Z","avatar_url":"https://github.com/humansinput.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthSystem\nA module for use in Tcl 8.5/8.6 programs that provides handy API for creating and authorizating users.\n\nDepends on TDBC (for now) and Tcllib.\n\n## Usage\n[squares]\n- ``authsys::use \u003cname of TDBC connection-storing variable\u003e \u003cname of table\u003e``: Tells AuthSystem to use this TDBC connection to read/write user data from the specified table. The specified table must contain ``authsys_username`` and ``authsystem_password`` columns, while the rest (if any) must be either optional or have a default value.\n- ``authsys::register \u003cusername\u003e \u003cpassword\u003e``: Creates a user with the specified username and password. If a user exists or the username contains invalid characters, an error is thrown.\n- ``authsys::passwordcorrect \u003cusername\u003e \u003cpassword\u003e``: Checks if the specified username and password are correct. If yes, returns ``1``, otherwise, returns ``0``.\n- ``authsys::exists \u003cusername\u003e``: Checks if the specified user is already registered. If yes, returns ``1``, otherwise, returns ``0``.\n- ``authsys::authtoken \u003cusername\u003e \u003cpassword\u003e [\u003cdays\u003e]``: Creates an auth token that can be used to create user sessions. Useful for web apps, you should store the returned value as a cookie. By default, the returned token is valid for 3 days, but you can optionally specify a different number of days as the third argument. Returns a string.\n- ``authsys::tokencorrect \u003ctoken\u003e``: Returns ``1`` if the token is valid, otherwise, returns ``0``.\n\n## Example\nSee ``demo.tcl`` (requires TDBC Sqlite3 driver to be present on your system to run).\n\n## License\nAs always, MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fauthsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumansinput%2Fauthsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumansinput%2Fauthsystem/lists"}