@steedos/accounts 2.5.3-beta.21 → 2.5.3-beta.23
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/package.json +6 -6
- package/lib/oauth2/client.js +0 -1
- package/lib/oauth2/client.js.map +0 -1
- package/lib/oauth2/config.js +0 -14
- package/lib/oauth2/config.js.map +0 -1
- package/lib/oauth2/consent.js +0 -192
- package/lib/oauth2/consent.js.map +0 -1
- package/lib/oauth2/login.js +0 -166
- package/lib/oauth2/login.js.map +0 -1
- package/lib/oauth2/logout.js +0 -60
- package/lib/oauth2/logout.js.map +0 -1
- package/lib/oauth2/stub/oidc-cert.js +0 -67
- package/lib/oauth2/stub/oidc-cert.js.map +0 -1
- package/lib/saml-idp/config.js +0 -82
- package/lib/saml-idp/config.js.map +0 -1
- package/lib/saml-idp/connectedApps.js +0 -20
- package/lib/saml-idp/connectedApps.js.map +0 -1
- package/lib/saml-idp/express-middleware.js +0 -684
- package/lib/saml-idp/express-middleware.js.map +0 -1
- package/lib/saml-idp/index.js +0 -13
- package/lib/saml-idp/index.js.map +0 -1
- package/lib/saml-idp/simpleProfileMapper.js +0 -75
- package/lib/saml-idp/simpleProfileMapper.js.map +0 -1
package/lib/saml-idp/config.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User Profile
|
|
3
|
-
*/
|
|
4
|
-
var profile = {
|
|
5
|
-
userName: 'zhuangjianguo@steedos.com',
|
|
6
|
-
nameIdFormat: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
|
|
7
|
-
firstName: 'Jack',
|
|
8
|
-
lastName: 'Zhuang',
|
|
9
|
-
displayName: 'Jack Zhuang',
|
|
10
|
-
email: 'zhuangjianguo@steedos.com',
|
|
11
|
-
mobilePhone: '+86-01777701',
|
|
12
|
-
groups: 'Users'
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* SAML Attribute Metadata
|
|
16
|
-
*/
|
|
17
|
-
var metadata = [
|
|
18
|
-
// {
|
|
19
|
-
// id: "firstName",
|
|
20
|
-
// optional: false,
|
|
21
|
-
// displayName: 'First Name',
|
|
22
|
-
// description: 'The given name of the user',
|
|
23
|
-
// multiValue: false
|
|
24
|
-
// }, {
|
|
25
|
-
// id: "lastName",
|
|
26
|
-
// optional: false,
|
|
27
|
-
// displayName: 'Last Name',
|
|
28
|
-
// description: 'The surname of the user',
|
|
29
|
-
// multiValue: false
|
|
30
|
-
// },
|
|
31
|
-
{
|
|
32
|
-
id: "userId",
|
|
33
|
-
optional: true,
|
|
34
|
-
displayName: 'User Id',
|
|
35
|
-
description: 'The id of the user',
|
|
36
|
-
multiValue: false
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "username",
|
|
40
|
-
optional: true,
|
|
41
|
-
displayName: 'User Name',
|
|
42
|
-
description: 'The username of the user',
|
|
43
|
-
multiValue: false
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: "name",
|
|
47
|
-
optional: true,
|
|
48
|
-
displayName: 'Display Name',
|
|
49
|
-
description: 'The display name of the user',
|
|
50
|
-
multiValue: false
|
|
51
|
-
}, {
|
|
52
|
-
id: "email",
|
|
53
|
-
optional: false,
|
|
54
|
-
displayName: 'E-Mail Address',
|
|
55
|
-
description: 'The e-mail address of the user',
|
|
56
|
-
multiValue: false
|
|
57
|
-
}, {
|
|
58
|
-
id: "mobile",
|
|
59
|
-
optional: true,
|
|
60
|
-
displayName: 'Mobile',
|
|
61
|
-
description: 'The mobile phone of the user',
|
|
62
|
-
multiValue: false
|
|
63
|
-
},
|
|
64
|
-
// {
|
|
65
|
-
// id: "groups",
|
|
66
|
-
// optional: true,
|
|
67
|
-
// displayName: 'Groups',
|
|
68
|
-
// description: 'Group memberships of the user',
|
|
69
|
-
// multiValue: true
|
|
70
|
-
// }, {
|
|
71
|
-
// id: "userType",
|
|
72
|
-
// optional: true,
|
|
73
|
-
// displayName: 'User Type',
|
|
74
|
-
// description: 'The type of user',
|
|
75
|
-
// options: ['Admin', 'User']
|
|
76
|
-
// }
|
|
77
|
-
];
|
|
78
|
-
module.exports = {
|
|
79
|
-
user: profile,
|
|
80
|
-
metadata: metadata
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/saml-idp/config.js"],"names":[],"mappings":"AACA;;GAEG;AACH,IAAI,OAAO,GAAG;IACV,QAAQ,EAAE,2BAA2B;IACrC,YAAY,EAAE,wDAAwD;IACtE,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,OAAO;CAChB,CAAA;AAED;;GAEG;AACH,IAAI,QAAQ,GAAG;IACf,IAAI;IACJ,qBAAqB;IACrB,qBAAqB;IACrB,+BAA+B;IAC/B,+CAA+C;IAC/C,sBAAsB;IACtB,OAAO;IACP,oBAAoB;IACpB,qBAAqB;IACrB,8BAA8B;IAC9B,4CAA4C;IAC5C,sBAAsB;IACtB,MAAM;IACN;QACE,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,oBAAoB;QACjC,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,UAAU;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,0BAA0B;QACvC,UAAU,EAAE,KAAK;KAClB;IACD;QACE,EAAE,EAAE,MAAM;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,8BAA8B;QAC3C,UAAU,EAAE,KAAK;KAClB,EAAE;QACD,EAAE,EAAE,OAAO;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,gCAAgC;QAC7C,UAAU,EAAE,KAAK;KAClB,EAAC;QACA,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,8BAA8B;QAC3C,UAAU,EAAE,KAAK;KAClB;IACD,IAAI;IACJ,kBAAkB;IAClB,oBAAoB;IACpB,2BAA2B;IAC3B,kDAAkD;IAClD,qBAAqB;IACrB,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,8BAA8B;IAC9B,qCAAqC;IACrC,+BAA+B;IAC/B,IAAI;CACL,CAAC;AAEA,MAAM,CAAC,OAAO,GAAG;IACf,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,QAAQ;CACnB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.connectedApps = void 0;
|
|
4
|
-
exports.connectedApps = {
|
|
5
|
-
sogo: {
|
|
6
|
-
acsUrl: "https://mail.steedos.cn/SOGo/saml2-signon-post",
|
|
7
|
-
audience: "https://mail.steedos.cn/SOGo/saml2/artifactResponse",
|
|
8
|
-
},
|
|
9
|
-
salesforce: {
|
|
10
|
-
issuer: "http://192.168.0.50:4000/accounts/saml/",
|
|
11
|
-
acsUrl: "https://steedos-dev-ed.my.salesforce.com?so=00D7F000000q6uO",
|
|
12
|
-
audience: "https://steedos-dev-ed.my.salesforce.com/",
|
|
13
|
-
},
|
|
14
|
-
auth0: {
|
|
15
|
-
issuer: "urn:auth0:hotlong:Steedos",
|
|
16
|
-
acsUrl: "https://hotlong.auth0.com/login/callback?connection=Steedos",
|
|
17
|
-
audience: "urn:auth0:hotlong:Steedos",
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=connectedApps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectedApps.js","sourceRoot":"","sources":["../../src/saml-idp/connectedApps.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,gDAAgD;QACxD,QAAQ,EAAE,qDAAqD;KAChE;IACD,UAAU,EAAE;QACV,MAAM,EAAE,yCAAyC;QACjD,MAAM,EAAE,6DAA6D;QACrE,QAAQ,EAAE,2CAA2C;KACtD;IACD,KAAK,EAAE;QACL,MAAM,EAAE,2BAA2B;QACnC,MAAM,EAAE,6DAA6D;QACrE,QAAQ,EAAE,2BAA2B;KACtC;CACF,CAAA"}
|