{"id":17703779,"url":"https://github.com/zudov/purescript-yesod-auth","last_synced_at":"2026-02-05T22:32:07.043Z","repository":{"id":58224466,"uuid":"50893198","full_name":"zudov/purescript-yesod-auth","owner":"zudov","description":"Bindings to `yesod-auth` endpoints.","archived":false,"fork":false,"pushed_at":"2016-02-10T08:48:52.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-02T00:24:53.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zudov.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":"2016-02-02T04:08:57.000Z","updated_at":"2016-02-06T17:59:05.000Z","dependencies_parsed_at":"2022-08-31T04:10:22.336Z","dependency_job_id":null,"html_url":"https://github.com/zudov/purescript-yesod-auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zudov/purescript-yesod-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-yesod-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-yesod-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-yesod-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-yesod-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zudov","download_url":"https://codeload.github.com/zudov/purescript-yesod-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zudov%2Fpurescript-yesod-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29136769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T21:59:57.939Z","status":"ssl_error","status_checked_at":"2026-02-05T21:59:57.628Z","response_time":65,"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":"2024-10-24T21:05:55.425Z","updated_at":"2026-02-05T22:32:07.013Z","avatar_url":"https://github.com/zudov.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-yesod-auth\n\nBindings to `yesod-auth` endpoints.\n\n`test/` directory contains a runnable example. Start the server by executing\n`./test/Main.hs` (requires `stack`) and launch `pulp test` to do some queries\nagainst it.\n\nHere is a glimse at the API:\n\n```haskell\nimport Yesod.Auth (login, logout, LoginSuccess(..), LoginFailure(..))\nimport Yesod.Auth.Plugin (hardcoded)\n\nlet authRoute =\n      { scheme: Just (URIScheme \"http\")\n      , authority: Just (Authority Nothing [Tuple (NameAddress \"missile.dog\") Nothing])\n      , path: rootDir \u003c/\u003e dir \"auth\"\n      }\n\nresult \u003c- login authRoute hardcoded \"username\" \"password\"\n\ncase result of\n  Right LoginSuccess\n    -\u003e do alert \"Welcome!\"\n\n          alert \"Now lets launch missiles\"\n          Ajax.post \"http://missile.dog/launch\" \"Poehali\"\n\n          alert \"Now we gonna log you out\"\n          logout authRoute\n\n  Left (LoginUsernameNotFound username)\n    -\u003e alert (\"We don't know of any \" \u003c\u003e username)\n\n  Left LoginInvalid\n    -\u003e alert \"Your credentials are invalid, go away.\"\n\n  Left (LoginError msg)\n    -\u003e alert (\"Failed to login. \" \u003c\u003e msg)\n\n```\n\nYesod persists authentication using cookies, so credentials become a part of\nimplicit global state, keep that in mind and handle appropriately.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzudov%2Fpurescript-yesod-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzudov%2Fpurescript-yesod-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzudov%2Fpurescript-yesod-auth/lists"}