{"id":43217383,"url":"https://github.com/mcroteau/parakeet","last_synced_at":"2026-02-01T08:12:43.795Z","repository":{"id":57734103,"uuid":"288335199","full_name":"mcroteau/parakeet","owner":"mcroteau","description":"A Small J2ee Security Framework / Plugin. ","archived":false,"fork":false,"pushed_at":"2021-12-15T18:25:04.000Z","size":194,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T13:04:04.921Z","etag":null,"topics":["parakeet","security","servlet","spring"],"latest_commit_sha":null,"homepage":"https://github.com/mcroteau/Parakeet","language":"Java","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/mcroteau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-18T02:30:12.000Z","updated_at":"2023-02-15T06:22:38.000Z","dependencies_parsed_at":"2022-09-26T22:10:55.862Z","dependency_job_id":null,"html_url":"https://github.com/mcroteau/parakeet","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mcroteau/parakeet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcroteau%2Fparakeet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcroteau%2Fparakeet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcroteau%2Fparakeet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcroteau%2Fparakeet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcroteau","download_url":"https://codeload.github.com/mcroteau/parakeet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcroteau%2Fparakeet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28973339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T06:46:42.625Z","status":"ssl_error","status_checked_at":"2026-02-01T06:44:56.173Z","response_time":56,"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":["parakeet","security","servlet","spring"],"created_at":"2026-02-01T08:12:43.214Z","updated_at":"2026-02-01T08:12:43.789Z","avatar_url":"https://github.com/mcroteau.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Parakeet \n======\n\nParakeet is a small J2ee Open Source security framework / plugin that boasts quick easy setup.\n\n#### Installation\n\nAdd dependency:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003exyz.goioc\u003c/groupId\u003e\n    \u003cartifactId\u003eparakeet\u003c/artifactId\u003e\n    \u003cversion\u003e0.10\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUpdate `web.xml`, add ParakeetFilter:\n\n```\n\u003cfilter\u003e\n    \u003cfilter-name\u003eParakeet\u003c/filter-name\u003e\n    \u003cfilter-class\u003eperched.support.filters.ParakeetFilter\u003c/filter-class\u003e\n\u003c/filter\u003e\n\n\u003cfilter-mapping\u003e\n    \u003cfilter-name\u003eParakeet\u003c/filter-name\u003e\n    \u003curl-pattern\u003e/*\u003c/url-pattern\u003e\n\u003c/filter-mapping\u003e\n```\n\nCreate an `Accessor`, the class\nwhich provides data to Parakeet.\n\nExample:\n\n```\npackage perched.support.accessor;\n\nimport Accessor;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport xyz.goioc.dao.AccountDao;\nimport xyz.goioc.model.Account;\n\nimport qio.annotate.Inject;\n\nimport java.util.Set;\n\n\npublic class JdbcAccessor implements Accessor {\n\n    @Inject\n    AccountDao accountDao;\n\n    public String getPassword(String user){\n        String password = accountDao.getAccountPassword(user);\n        return password;\n    }\n\n    public Set\u003cString\u003e getRoles(String user){\n        Account account = accountDao.findByUsername(user);\n        Set\u003cString\u003e roles = accountDao.getAccountRoles(account.getId());\n        return roles;\n    }\n\n    public Set\u003cString\u003e getPermissions(String user){\n        Account account = accountDao.findByUsername(user);\n        Set\u003cString\u003e permissions = accountDao.getAccountPermissions(account.getId());\n        return permissions;\n    }\n\n}\n```\n\nAdd Cookie xml declaration just in case the container \ndoesn't pick up the cookie on authentication. Add to the **web.xml**\n\n```\n\u003csession-config\u003e\n    \u003ctracking-mode\u003eCOOKIE\u003c/tracking-mode\u003e\n\u003c/session-config\u003e\n```\n\nThen somewhere in your project during startup call `.configure()` passing \nin the JdbcAccessor.\n\n```\nParakeet.configure(jdbcAccessor)\n```\n\n### Parakeet has your JdbcAccessor and your project is configured. \n\nNow you can use can authenticate your user via :\n\n`Parakeet.login()`\n\nYou'll have access to the following methods:\n\n`Parakeet.isAuthenticated()`\n\n`Parakeet.hasRole(role)`\n\n`Parakeet.hasPermission(permission)`\n\nTo log out:\n\n`Parakeet.logout()`\n\n### See, we told you it was short!\n\nOh, we added something new. Taglibs:\n\nYou can now check authentication, and get user info \nwithin jsp without scriptlets.\n\n**First include tag reference:**\n\n`\u003c%@ taglib prefix=\"parakeet\" uri=\"/META-INF/tags/parakeet.tld\"%\u003e`\n\n**3 available tags:**\n\nDisplays when user is anonymous \u0026 not authenticated\n\n`\u003cparakeet:isAnonymous\u003e\u003c/isAnonymous\u003e`\n\nDisplays content only when user is authenticated\n\n`\u003cparakeet:isAuthenticated\u003e\u003c/isAuthenticated\u003e`\n\nDisplays username\n\n`\u003cparakeet:username\u003e\u003c/username\u003e`\n\nA very basic sample servlet app can be viewed within \nthe project under `sample-web`\n\nIf you want a more, we recommend Apache Shiro! It's a Bull Dog.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcroteau%2Fparakeet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcroteau%2Fparakeet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcroteau%2Fparakeet/lists"}