{"id":21980611,"url":"https://github.com/stormpath/unified-identity-demo","last_synced_at":"2026-04-28T15:36:49.103Z","repository":{"id":32065757,"uuid":"35637602","full_name":"stormpath/unified-identity-demo","owner":"stormpath","description":"A simple unified user identity demo app, built with Stormpath and OAuth.io.","archived":false,"fork":false,"pushed_at":"2017-03-06T16:41:06.000Z","size":2675,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-23T01:15:17.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://unified-identity-demo.herokuapp.com/","language":"HTML","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-05-14T21:20:10.000Z","updated_at":"2016-07-13T19:01:21.000Z","dependencies_parsed_at":"2022-07-12T09:24:37.896Z","dependency_job_id":null,"html_url":"https://github.com/stormpath/unified-identity-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stormpath/unified-identity-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Funified-identity-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Funified-identity-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Funified-identity-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Funified-identity-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stormpath","download_url":"https://codeload.github.com/stormpath/unified-identity-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stormpath%2Funified-identity-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262897455,"owners_count":23381423,"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:23.816Z","updated_at":"2026-04-28T15:36:39.089Z","avatar_url":"https://github.com/stormpath.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unified-identity-demo\n\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/stormpath/unified-identity-demo)\n\n\n## Purpose\n\nThis demo app showcases how you can easily throw together a web application with\nuser registration, authentication, and social login using plain old Javascript.\n\nThis application works by using [Stormpath][] to store your user accounts and\nuser data, using [OAuth.io][] to handle social login and account linking, and\nusing [Heroku][] to easily host the web application for free.\n\nThe guide below explains how to make this example application run in your own\nenvironment.\n\n\n## What it Looks Like\n\nHere's what the application looks like once deployed:\n\n![Demo](https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/demo.gif)\n\nThis demo application lets you:\n\n- Create an account.\n- Enter a private dashboard page.\n- Link your Facebook / Twitter / Google social accounts to create a 'unified'\n  identity.\n\n\n## Installation\n\nTo install this demo app and get started, you'll first need to create a\n[Heroku][] account if you haven't already.\n\nNext, you'll want to click the big *\"Deploy to Heroku\"* button at the top of\nthis README -- this should prompt you to create a new (*free*) Heroku\napplication which will automatically run and configure itself with both the\n[Stormpath][] and [OAuth.io][] addons.\n\nYou should see a page that looks something like this:\n\n![Heroku Install Page][]\n\nTo launch your new Heroku app, just click the *\"Deploy for Free\"* button at the\nbottom of the page =)\n\n**NOTE**: Keep track of your newly created app name, we'll need this below to\nfinish setting up the demo!\n\n\n## CLI Configuration\n\nBefore continuing, I'm going to assume you've already got the\n[Heroku Toolbelt][] setup and working so that you can use the Heroku command\nline tool.\n\nIf you don't already have it installed and working, go set it up now!\n\n\n## Setup\n\nTo setup the demo app, we'll need to first grab our Stormpath API keys.  You can\ndo this by running the below command:\n\n```console\n$ heroku config --app random-demo-app\n=== random-demo-app Config Vars\nOAUTHIO_PUBLIC_KEY:       xxx\nSTORMPATH_API_KEY_ID:     xxx\nSTORMPATH_API_KEY_SECRET: xxx\nSTORMPATH_URL:            https://api.stormpath.com/v1/applications/xxx\n```\n\n**NOTE**: You should see something similar to the above.  You'll want to write\ndown your Stormpath API Key ID and API Key Secret values.  You'll need these\nbelow.\n\nNext, you need to open up the OAuth.io addon and configure it to use Stormpath\n-- this integration is what allows us to support a *\"unified identity\"* model\nwhereas all users created in our app will be stored in Stormpath's secure user\ndatabase -- and all social logins will be handled by OAuth.io's excellent\nJavascript toolset.\n\nHere's what you need to do.\n\nFirst, open up the OAuth.io interface:\n\n```console\n$ heroku addons:open oauthio --app random-demo-app\n```\n\nThis will open your browser automatically, and you should see something like\nthis:\n\n![OAuth.io Dashboard][]\n\nNext, click the *\"Users Overview\"* tab on the left, then click the *\"Enable with\nStormpath\"* button.  You should see a page like this:\n\n![OAuth.io Stormpath Configuration][]\n\n- For the *\"Stormpath application name\"* box, enter your Heroku app name.\n- For the *\"Stormpath public key\"* box, enter your `STORMPATH_API_KEY_ID` value\n  that you wrote down earlier.\n- For the *\"Stormpath secret\"* box, enter your `STORMPATH_API_KEY_SECRET` value\n  that you wrote down earlier.\n\nIf you enter these values successfully, you should be greeted by a success page\nthat looks like this:\n\n![OAuth.io Stormpath Success][]\n\nNext, you'll need to go create some social apps!  This is required in order to\ntest out the unified identity bit of this demo.\n\nTo do this, click on the *\"Integrated APIs\"* tab in the OAuth.io interface, and\nthen add a Google App, a Facebook App, and a Twitter App (*this demo requires\nall three*).\n\nThrough this process you'll need to input your already-created credentials.\nThis means you'll need to first go out and create an actual Google, Facebook,\nand Twitter app before continuing.\n\n**NOTE**: When you're in the OAuth.io interface adding these apps, there are\ninstructions which tell you how to create these apps and set them up if you\nhaven't already done so.\n\nFinally, after setting up your social apps, you should see a page like the\nfollowing:\n\n![OAuth.io Social][]\n\nNow you're ready to go!\n\n\n## Testing It Out\n\nTo test out your new unified identity demo, do the following.\n\nFirstly, open up your web interface:\n\n```console\n$ heroku open --app random-demo-app\n```\n\nThis will open up the home page of your Heroku app.\n\nNext, type in some user information and create an account!  This user\ninformation will be stored in Stormpath securely -- no database necessary!\n\nNext, you'll be brought to a simple dashboard page where you can click the\nSocial buttons to 'link' your social accounts to your main account.\n\nWhen this process is finished, you'll have a fully unified user identity!\nPretty neat, right?\n\n\n  [Stormpath]: https://stormpath.com/ \"Stormpath User Management API\"\n  [OAuth.io]: https://oauth.io/home \"OAuth.io - Simple OAuth Integration\"\n  [Heroku]: https://www.heroku.com/ \"Heroku\"\n  [Heroku Install Page]: https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/heroku-install-page.png \"Heroku Install Page\"\n  [Heroku Toolbelt]: https://toolbelt.heroku.com/ \"Heroku Toolbelt\"\n  [OAuth.io Dashboard]: https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/oauthio-dashboard.png \"OAuth.io Dashboard Page\"\n  [OAuth.io Stormpath Configuration]: https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/oauthio-stormpath.png \"OAuth.io Stormpath Configuration\"\n  [OAuth.io Stormpath Success]: https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/oauthio-stormpath-success.png \"OAuth.io Stormpath Success\"\n  [OAuth.io Social]: https://raw.githubusercontent.com/stormpath/unified-identity-demo/master/static/images/oauthio-social.png \"OAuth.io Social\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstormpath%2Funified-identity-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstormpath%2Funified-identity-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstormpath%2Funified-identity-demo/lists"}