{"id":25657344,"url":"https://github.com/stellarfw/identify","last_synced_at":"2026-05-12T23:31:19.251Z","repository":{"id":70505600,"uuid":"64496430","full_name":"StellarFw/Identify","owner":"StellarFw","description":"The official authentication module for Stellar","archived":false,"fork":false,"pushed_at":"2026-04-03T15:24:02.000Z","size":78,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-03T18:56:45.131Z","etag":null,"topics":["authentication","module","stellar"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/StellarFw.png","metadata":{"files":{"readme":"README.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-07-29T16:53:59.000Z","updated_at":"2026-04-03T15:24:10.000Z","dependencies_parsed_at":"2023-02-24T08:46:04.259Z","dependency_job_id":null,"html_url":"https://github.com/StellarFw/Identify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StellarFw/Identify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarFw%2FIdentify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarFw%2FIdentify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarFw%2FIdentify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarFw%2FIdentify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StellarFw","download_url":"https://codeload.github.com/StellarFw/Identify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarFw%2FIdentify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"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":["authentication","module","stellar"],"created_at":"2025-02-23T23:18:07.604Z","updated_at":"2026-05-12T23:31:19.246Z","avatar_url":"https://github.com/StellarFw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Identify\n\nIdentify is an authentication solution for Stellar made to cur repetitive work involving management of users. A [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) approach on features like account creation, login, logout, confirmation by e-mail, password reset, etc.\n\n## Composition\n\n- actions:\n- **`auth.register`** - create a new user account;\n- **`auth.login`** - login with an existent user account;\n- **`auth.disableUser`** - disable the user account. Disabled users can not make login;\n- **`auth.checkSession`** - check the state of a token and if it's valid return the expire time (`expireAt`) and the user info (`user`);\n- models:\n- **`user`** - model to represent a user on the database;\n- events:\n- **`auth.checkSessionResponse`** - this event allows edit the response for the `auth.checkSession` action.\n- middleware:\n- **`auth.needAuth`** - only authenticated users can access the protected action.\n\n## Quick start\n\nTo start using Identify on your Stellar application you can follow the commands below.\n\nIf you use git to manage the changes in your application you can add Identify as a Git submodule.\n\n```shell\n# add Identify as a Git submodule\ngit submodule add https://github.com/StellarFw/Identify modules/identify\n```\n\nIf you don't use Git in your app you can use Git only to clone the repo or make the download of repository Zip.\n\n```shell\ngit clone https://github.com/StellarFw/Identify modules/identify\n```\n\n### Activate the Module\n\nNow to activate the module you just need add `\"identify\"` to the `manifest.json` file on your app root folder. Like this:\n\n```json\n{\n  \"name\": \"my-awesome-app\",\n  \"version\": \"1.0.0\",\n\n  \"modules\": [\"identify\"]\n}\n```\n\n## Usage\n\nThe code below show the usage of the middleware:\n\n```javascript\nexport const example = {\n  name: \"example\",\n  description: \"This is a protected action\",\n\n  middleware: [\"auth.needAuth\"],\n\n  run: (api, action, next) =\u003e {\n    // only authenticated users reach this point\n    // do something...\n\n    next();\n  },\n};\n```\n\n\u003e Note: it's recommended load this module before all the others.\n\n## TODOs\n\n- Add a mechanism to reset the user password\n- Add a way to validate users at account creation\n- Add a way to invalidate tokens\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarfw%2Fidentify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellarfw%2Fidentify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarfw%2Fidentify/lists"}