@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.
- package/README.md +6 -3
- 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
|
-
|
47
|
-
|
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.
|
106
|
+
app.use('/sso', router);
|
104
107
|
|
105
108
|
```
|
106
109
|
|