{"id":21980573,"url":"https://github.com/stormpath/loopback-stormpath","last_synced_at":"2025-07-18T06:33:07.970Z","repository":{"id":28897271,"uuid":"32422021","full_name":"stormpath/loopback-stormpath","owner":"stormpath","description":"User authentication for Loopback made simple.","archived":false,"fork":false,"pushed_at":"2017-03-06T16:52:56.000Z","size":44,"stargazers_count":10,"open_issues_count":36,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-07T21:40:10.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stormpath.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}},"created_at":"2015-03-17T21:41:51.000Z","updated_at":"2019-08-18T16:41:00.000Z","dependencies_parsed_at":"2022-08-18T19:31:40.275Z","dependency_job_id":null,"html_url":"https://github.com/stormpath/loopback-stormpath","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stormpath/loopback-stormpath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Floopback-stormpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Floopback-stormpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Floopback-stormpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Floopback-stormpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stormpath","download_url":"https://codeload.github.com/stormpath/loopback-stormpath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Floopback-stormpath/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265710573,"owners_count":23815380,"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","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-11-29T17:12:05.195Z","updated_at":"2025-07-18T06:33:07.950Z","avatar_url":"https://github.com/stormpath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Stormpath is Joining Okta\nWe are incredibly excited to announce that [Stormpath is joining forces with Okta](https://stormpath.com/blog/stormpaths-new-path?utm_source=github\u0026utm_medium=readme\u0026utm-campaign=okta-announcement). Please visit [the Migration FAQs](https://stormpath.com/oktaplusstormpath?utm_source=github\u0026utm_medium=readme\u0026utm-campaign=okta-announcement) for a detailed look at what this means for Stormpath users.\n\nWe're available to answer all questions at [support@stormpath.com](mailto:support@stormpath.com).\n\n# loopback-stormpath\n\n[![NPM Version](https://img.shields.io/npm/v/loopback-stormpath.svg?style=flat)](https://npmjs.org/package/loopback-stormpath)\n[![NPM Downloads](http://img.shields.io/npm/dm/loopback-stormpath.svg?style=flat)](https://npmjs.org/package/loopback-stormpath)\n[![Build Status](https://img.shields.io/travis/stormpath/loopback-stormpath.svg?style=flat)](https://travis-ci.org/stormpath/loopback-stormpath)\n\n*Stormpath User Management for Loopback.*\n\n\n## Purpose\n\nThis library is meant to provide an interface between [Loopback][] and\n[Stormpath][].\n\nThe end goal is provide the best possible user management system of all time for\nLoopback developers!\n\nIf you don't already have a Stormpath account, go make one!\nhttps://stormpath.com\n\n\n## Usage\n\nTo get started, you'll need to have Strongloop installed:\n\n```console\n$ npm install -g strongloop\n```\n\nNext, you need to create a Loopback project to work in:\n\n```console\n$ slc loopback\n```\n\nGo through the questions to create your project.\n\nNext, go into your project directory and edit your `server/server.js` file.\nYou'll need to add the following import statement to the top of your file:\n\n```javascript\nvar stormpath = require('loopback-stormpath');\n```\n\nYou'll also need to add the following line of code below your app creation\nstuff.  You should have something like this:\n\n```javascript\nvar app = module.exports = loopback();\n\n// Initialize Stormpath.\nstormpath.init(app);\n```\n\nAfter that, go ahead and open up `server/model-config.json`, and do two things:\n\n- Firstly, remove the `User` object.  This is the default Loopback User model\n  which you won't be using.\n- Secondly, add in a `StormpathUser` object like this:\n\n```javascript\n\"StormpathUser\": {\n  \"dataSource\": \"stormpath\"\n}\n```\n\n`StormpathUser` is the new user model you'll be using from now on.\n\nNext, open up `server/datasources.json`.  Here you'll need to define your\nStormpath data source, and specify your Stormpath API credentials.  Use the\nfollowing JSON blob as a configuration example, but substitute in your own\ncredentials:\n\n```javascript\n\"stormpath\": {\n  \"name\": \"stormpath\",\n  \"connector\": \"stormpath\",\n  \"apiKeyId\": \"xxx\",\n  \"apiKeySecret\": \"xxx\",\n  \"applicationHref\": \"https://api.stormpath.com/v1/applications/xxx\"\n}\n```\n\nThat's it!  You've now fully configured your Loopback project to work with\nStormpath.  If you run your project (`$ slc run`), then visit the API explorer:\nhttp://localhost:3000/explorer -- you should see a `StormpathUser` API endpoint\nthat you can use to create and manage your users with Stormpath!\n\n**NOTE**: This is a VERY early release.  We're still working hard to improve\nthings, and make this feature complete!  If you have feedback, please send it to\nus: support@stormpath.com\n\n\n## Changelog\n\nAll library changes, in descending order.\n\n\n### Version 0.0.1\n\n**Released on March 27, 2015.**\n\n- First release ever!  Still some lacking features, but we'll ship it anyway!\n\n\n  [Stormpath]: https://stormpath.com/ \"Stormpath User Management\"\n  [Loopback]: http://loopback.io/ \"Loopback Node.js Web Framework\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstormpath%2Floopback-stormpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstormpath%2Floopback-stormpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstormpath%2Floopback-stormpath/lists"}