@boxyhq/saml-jackson 0.1.5-beta.110 → 0.1.5-beta.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,12 +39,15 @@ const opts = {
39
39
  }
40
40
  };
41
41
 
42
+
43
+ let apiController;
44
+ let oauthController;
42
45
  // Please note that the initialization of @boxyhq/saml-jackson is async, you cannot run it at the top level
43
46
  // Run this in a function where you initialise the express server.
44
47
  async function init() {
45
48
  const ret = await require('@boxyhq/saml-jackson')(opts);
46
- const apiController = ret.apiController;
47
- const oauthController = ret.oauthController;
49
+ apiController = ret.apiController;
50
+ oauthController = ret.oauthController;
48
51
  }
49
52
 
50
53
  // express.js middlewares needed to parse json and x-www-form-urlencoded
@@ -100,7 +103,7 @@ router.get('/oauth/userinfo', cors(), async (req, res) => {
100
103
  });
101
104
 
102
105
  // set the router
103
- app.user('/sso', router);
106
+ app.use('/sso', router);
104
107
 
105
108
  ```
106
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/saml-jackson",
3
- "version": "0.1.5-beta.110",
3
+ "version": "0.1.5-beta.115",
4
4
  "license": "Apache 2.0",
5
5
  "description": "SAML 2.0 service",
6
6
  "main": "src/index.js",