https://github.com/chadxz/respoke-brokered-auth-boilerplate
Barebones boilerplate for brokered auth with Respoke
https://github.com/chadxz/respoke-brokered-auth-boilerplate
Last synced: 3 months ago
JSON representation
Barebones boilerplate for brokered auth with Respoke
- Host: GitHub
- URL: https://github.com/chadxz/respoke-brokered-auth-boilerplate
- Owner: chadxz
- License: mit
- Created: 2015-06-11T01:00:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-11T15:35:49.000Z (about 10 years ago)
- Last Synced: 2025-01-23T22:18:27.768Z (5 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# respoke-brokered-auth-boilerplate
An extremely barebones example of doing brokered auth to connected to Respoke in the browser.
## setup
- `git clone` this repo
- `npm install` to install npm and bower dependencies
- setup your Respoke config prior to starting your app. You can do this one of two ways:
1. set RESPOKE_APP_ID, RESPOKE_APP_SECRET, and RESPOKE_ROLE_ID environment variables
2. copy `config/default.js` to `config/local.js`, and fill in the empty `respoke` properties
- `npm start` to start the server## customizing
To substitute in your own single page javascript app, simply replace `public/index.html` with your own html! You can use
the code in `public/js/app.js` as an example of performing brokered auth with Respoke. The `bower` package manager is
used to quickly pull in frontend assets that can be included directly into your web app's html page.## license
[MIT](LICENSE)