Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added full detail section

  • Loading branch information...
commit ae046f334264d0e6a72466cb7eeb4efd210ea8c8 1 parent 9794626
@kaizenpack kaizenpack authored
Showing with 34 additions and 0 deletions.
  1. +34 −0 README.md
View
34 README.md
@@ -2197,6 +2197,40 @@ connect(
).listen(3000);
```
+### Smarterer
+
+You will need to register for an app id [here](http://www.smarterer.com/). Implementation details follow the same pattern as with other
+oauth2 implementations.
+
+```javascript
+
+var everyauth = require('everyauth')
+ , connect = require('connect');
+
+everyauth.smarterer
+ .appId('YOUR APP ID')
+ .appSecret('YOUR APP SECRET')
+ .findOrCreateUser(function(session, accessToken, accessTokenSecret, userData) {
+ // find or create user logic goes here
+ // userData.userName will contain the smarterer username for the authenticated user
+ // userData.badges will contain the scores on quizes
+ })
+ .redirectPath('/');
+
+ var routes = function (app) {
+ // Define your routes here
+ };
+
+ connect(
+ connect.bodyParser()
+ , connect.cookieParser()
+ , connect.session({secret: 'whodunnit'})
+ , everyauth.middleware()
+ , connect.router(routes);
+ ).listen(3000);
+```
+
+
### Box.net
```javascript
Please sign in to comment.
Something went wrong with that request. Please try again.