@authsome/client 0.0.7 → 0.0.9
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/dist/client.d.ts +42 -42
- package/dist/client.js +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +62 -62
- package/dist/plugins/admin.js +11 -11
- package/dist/plugins/apikey.js +7 -7
- package/dist/plugins/backupauth.js +6 -6
- package/dist/plugins/cms.d.ts +69 -18
- package/dist/plugins/cms.js +47 -47
- package/dist/plugins/idverification.js +11 -11
- package/dist/plugins/impersonation.js +6 -6
- package/dist/plugins/jwt.js +5 -5
- package/dist/plugins/multiapp.d.ts +19 -4
- package/dist/plugins/multiapp.js +23 -23
- package/dist/plugins/multisession.js +9 -9
- package/dist/plugins/notification.js +14 -14
- package/dist/plugins/oidcprovider.d.ts +3 -3
- package/dist/plugins/oidcprovider.js +17 -17
- package/dist/plugins/organization.d.ts +16 -4
- package/dist/plugins/organization.js +20 -20
- package/dist/plugins/permissions.js +3 -3
- package/dist/plugins/secrets.d.ts +1 -1
- package/dist/plugins/secrets.js +11 -11
- package/dist/plugins/sso.js +6 -6
- package/dist/plugins/stepup.js +14 -14
- package/dist/plugins/webhook.d.ts +1 -1
- package/dist/types.d.ts +3837 -3787
- package/package.json +1 -2
- package/src/client.ts +42 -42
- package/src/index.ts +20 -20
- package/src/plugins/admin.ts +11 -11
- package/src/plugins/apikey.ts +7 -7
- package/src/plugins/backupauth.ts +6 -6
- package/src/plugins/cms.ts +52 -52
- package/src/plugins/idverification.ts +11 -11
- package/src/plugins/impersonation.ts +6 -6
- package/src/plugins/jwt.ts +5 -5
- package/src/plugins/multiapp.ts +30 -30
- package/src/plugins/multisession.ts +9 -9
- package/src/plugins/notification.ts +14 -14
- package/src/plugins/oidcprovider.ts +23 -23
- package/src/plugins/organization.ts +24 -24
- package/src/plugins/permissions.ts +3 -3
- package/src/plugins/secrets.ts +12 -12
- package/src/plugins/sso.ts +6 -6
- package/src/plugins/stepup.ts +14 -14
- package/src/plugins/webhook.ts +1 -1
- package/src/types.ts +3928 -3877
|
@@ -11,69 +11,69 @@ class NotificationPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async createTemplate(request) {
|
|
14
|
-
const path = '/
|
|
14
|
+
const path = '/templates';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async getTemplate(params) {
|
|
20
|
-
const path =
|
|
20
|
+
const path = `/templates/${params.id}`;
|
|
21
21
|
return this.client.request('GET', path);
|
|
22
22
|
}
|
|
23
23
|
async listTemplates() {
|
|
24
|
-
const path = '/
|
|
24
|
+
const path = '/templates';
|
|
25
25
|
return this.client.request('GET', path);
|
|
26
26
|
}
|
|
27
27
|
async updateTemplate(params, request) {
|
|
28
|
-
const path =
|
|
28
|
+
const path = `/templates/${params.id}`;
|
|
29
29
|
return this.client.request('PUT', path, {
|
|
30
30
|
body: request,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
async deleteTemplate(params) {
|
|
34
|
-
const path =
|
|
34
|
+
const path = `/templates/${params.id}`;
|
|
35
35
|
return this.client.request('DELETE', path);
|
|
36
36
|
}
|
|
37
37
|
async resetTemplate(params) {
|
|
38
|
-
const path =
|
|
38
|
+
const path = `/templates/${params.id}/reset`;
|
|
39
39
|
return this.client.request('POST', path);
|
|
40
40
|
}
|
|
41
41
|
async resetAllTemplates() {
|
|
42
|
-
const path = '/reset-all';
|
|
42
|
+
const path = '/templates/reset-all';
|
|
43
43
|
return this.client.request('POST', path);
|
|
44
44
|
}
|
|
45
45
|
async getTemplateDefaults() {
|
|
46
|
-
const path = '/defaults';
|
|
46
|
+
const path = '/templates/defaults';
|
|
47
47
|
return this.client.request('GET', path);
|
|
48
48
|
}
|
|
49
49
|
async previewTemplate(params, request) {
|
|
50
|
-
const path =
|
|
50
|
+
const path = `/templates/${params.id}/preview`;
|
|
51
51
|
return this.client.request('POST', path, {
|
|
52
52
|
body: request,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
async renderTemplate(request) {
|
|
56
|
-
const path = '/render';
|
|
56
|
+
const path = '/templates/render';
|
|
57
57
|
return this.client.request('POST', path, {
|
|
58
58
|
body: request,
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
async sendNotification(request) {
|
|
62
|
-
const path = '/send';
|
|
62
|
+
const path = '/notifications/send';
|
|
63
63
|
return this.client.request('POST', path, {
|
|
64
64
|
body: request,
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
async getNotification(params) {
|
|
68
|
-
const path =
|
|
68
|
+
const path = `/notifications/${params.id}`;
|
|
69
69
|
return this.client.request('GET', path);
|
|
70
70
|
}
|
|
71
71
|
async listNotifications() {
|
|
72
|
-
const path = '/
|
|
72
|
+
const path = '/notifications';
|
|
73
73
|
return this.client.request('GET', path);
|
|
74
74
|
}
|
|
75
75
|
async resendNotification(params) {
|
|
76
|
-
const path =
|
|
76
|
+
const path = `/notifications/${params.id}/resend`;
|
|
77
77
|
return this.client.request('POST', path);
|
|
78
78
|
}
|
|
79
79
|
async handleWebhook(params) {
|
|
@@ -25,8 +25,8 @@ export declare class OidcproviderPlugin implements ClientPlugin {
|
|
|
25
25
|
introspectToken(request: types.TokenIntrospectionRequest): Promise<types.TokenIntrospectionResponse>;
|
|
26
26
|
revokeToken(request: types.TokenRevocationRequest): Promise<types.StatusResponse>;
|
|
27
27
|
deviceAuthorize(request: types.DeviceAuthorizationRequest): Promise<types.DeviceAuthorizationResponse>;
|
|
28
|
-
deviceCodeEntry(): Promise<
|
|
29
|
-
deviceVerify(request: types.DeviceVerificationRequest): Promise<
|
|
30
|
-
deviceAuthorizeDecision(request: types.DeviceAuthorizationDecisionRequest): Promise<
|
|
28
|
+
deviceCodeEntry(): Promise<types.DeviceCodeEntryResponse>;
|
|
29
|
+
deviceVerify(request: types.DeviceVerificationRequest): Promise<types.DeviceVerifyResponse>;
|
|
30
|
+
deviceAuthorizeDecision(request: types.DeviceAuthorizationDecisionRequest): Promise<types.DeviceDecisionResponse>;
|
|
31
31
|
}
|
|
32
32
|
export declare function oidcproviderClient(): OidcproviderPlugin;
|
|
@@ -11,87 +11,87 @@ class OidcproviderPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async registerClient(request) {
|
|
14
|
-
const path = '/register';
|
|
14
|
+
const path = '/oauth2/register';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async listClients() {
|
|
20
|
-
const path = '/
|
|
20
|
+
const path = '/oauth2/clients';
|
|
21
21
|
return this.client.request('GET', path);
|
|
22
22
|
}
|
|
23
23
|
async getClient(params) {
|
|
24
|
-
const path =
|
|
24
|
+
const path = `/oauth2/clients/${params.clientId}`;
|
|
25
25
|
return this.client.request('GET', path);
|
|
26
26
|
}
|
|
27
27
|
async updateClient(params, request) {
|
|
28
|
-
const path =
|
|
28
|
+
const path = `/oauth2/clients/${params.clientId}`;
|
|
29
29
|
return this.client.request('PUT', path, {
|
|
30
30
|
body: request,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
async deleteClient(params) {
|
|
34
|
-
const path =
|
|
34
|
+
const path = `/oauth2/clients/${params.clientId}`;
|
|
35
35
|
return this.client.request('DELETE', path);
|
|
36
36
|
}
|
|
37
37
|
async discovery() {
|
|
38
|
-
const path = '/.well-known/openid-configuration';
|
|
38
|
+
const path = '/oauth2/.well-known/openid-configuration';
|
|
39
39
|
return this.client.request('GET', path);
|
|
40
40
|
}
|
|
41
41
|
async jWKS() {
|
|
42
|
-
const path = '/jwks';
|
|
42
|
+
const path = '/oauth2/jwks';
|
|
43
43
|
return this.client.request('GET', path);
|
|
44
44
|
}
|
|
45
45
|
async authorize() {
|
|
46
|
-
const path = '/authorize';
|
|
46
|
+
const path = '/oauth2/authorize';
|
|
47
47
|
return this.client.request('GET', path);
|
|
48
48
|
}
|
|
49
49
|
async handleConsent(request) {
|
|
50
|
-
const path = '/consent';
|
|
50
|
+
const path = '/oauth2/consent';
|
|
51
51
|
return this.client.request('POST', path, {
|
|
52
52
|
body: request,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
async token(request) {
|
|
56
|
-
const path = '/token';
|
|
56
|
+
const path = '/oauth2/token';
|
|
57
57
|
return this.client.request('POST', path, {
|
|
58
58
|
body: request,
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
async userInfo() {
|
|
62
|
-
const path = '/userinfo';
|
|
62
|
+
const path = '/oauth2/userinfo';
|
|
63
63
|
return this.client.request('GET', path);
|
|
64
64
|
}
|
|
65
65
|
async introspectToken(request) {
|
|
66
|
-
const path = '/introspect';
|
|
66
|
+
const path = '/oauth2/introspect';
|
|
67
67
|
return this.client.request('POST', path, {
|
|
68
68
|
body: request,
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
async revokeToken(request) {
|
|
72
|
-
const path = '/revoke';
|
|
72
|
+
const path = '/oauth2/revoke';
|
|
73
73
|
return this.client.request('POST', path, {
|
|
74
74
|
body: request,
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
async deviceAuthorize(request) {
|
|
78
|
-
const path = '/device_authorization';
|
|
78
|
+
const path = '/oauth2/device_authorization';
|
|
79
79
|
return this.client.request('POST', path, {
|
|
80
80
|
body: request,
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
async deviceCodeEntry() {
|
|
84
|
-
const path = '/
|
|
84
|
+
const path = '/oauth2/device';
|
|
85
85
|
return this.client.request('GET', path);
|
|
86
86
|
}
|
|
87
87
|
async deviceVerify(request) {
|
|
88
|
-
const path = '/verify';
|
|
88
|
+
const path = '/oauth2/device/verify';
|
|
89
89
|
return this.client.request('POST', path, {
|
|
90
90
|
body: request,
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
async deviceAuthorizeDecision(request) {
|
|
94
|
-
const path = '/authorize';
|
|
94
|
+
const path = '/oauth2/device/authorize';
|
|
95
95
|
return this.client.request('POST', path, {
|
|
96
96
|
body: request,
|
|
97
97
|
});
|
|
@@ -19,12 +19,18 @@ export declare class OrganizationPlugin implements ClientPlugin {
|
|
|
19
19
|
getOrganizationBySlug(params: {
|
|
20
20
|
slug: string;
|
|
21
21
|
}): Promise<types.Organization>;
|
|
22
|
-
listMembers(
|
|
23
|
-
|
|
22
|
+
listMembers(params: {
|
|
23
|
+
id: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
inviteMember(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
}): Promise<void>;
|
|
24
28
|
updateMember(params: {
|
|
29
|
+
id: string;
|
|
25
30
|
memberId: string;
|
|
26
31
|
}): Promise<void>;
|
|
27
32
|
removeMember(params: {
|
|
33
|
+
id: string;
|
|
28
34
|
memberId: string;
|
|
29
35
|
}): Promise<void>;
|
|
30
36
|
acceptInvitation(params: {
|
|
@@ -33,12 +39,18 @@ export declare class OrganizationPlugin implements ClientPlugin {
|
|
|
33
39
|
declineInvitation(params: {
|
|
34
40
|
token: string;
|
|
35
41
|
}): Promise<types.StatusResponse>;
|
|
36
|
-
listTeams(
|
|
37
|
-
|
|
42
|
+
listTeams(params: {
|
|
43
|
+
id: string;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
createTeam(params: {
|
|
46
|
+
id: string;
|
|
47
|
+
}): Promise<void>;
|
|
38
48
|
updateTeam(params: {
|
|
49
|
+
id: string;
|
|
39
50
|
teamId: string;
|
|
40
51
|
}): Promise<void>;
|
|
41
52
|
deleteTeam(params: {
|
|
53
|
+
id: string;
|
|
42
54
|
teamId: string;
|
|
43
55
|
}): Promise<void>;
|
|
44
56
|
}
|
|
@@ -11,67 +11,67 @@ class OrganizationPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async createOrganization() {
|
|
14
|
-
const path = '/
|
|
14
|
+
const path = '/organizations';
|
|
15
15
|
return this.client.request('POST', path);
|
|
16
16
|
}
|
|
17
17
|
async getOrganization(params) {
|
|
18
|
-
const path =
|
|
18
|
+
const path = `/organizations/${params.id}`;
|
|
19
19
|
return this.client.request('GET', path);
|
|
20
20
|
}
|
|
21
21
|
async listOrganizations() {
|
|
22
|
-
const path = '/
|
|
22
|
+
const path = '/organizations';
|
|
23
23
|
return this.client.request('GET', path);
|
|
24
24
|
}
|
|
25
25
|
async updateOrganization(params) {
|
|
26
|
-
const path =
|
|
26
|
+
const path = `/organizations/${params.id}`;
|
|
27
27
|
return this.client.request('PATCH', path);
|
|
28
28
|
}
|
|
29
29
|
async deleteOrganization(params) {
|
|
30
|
-
const path =
|
|
30
|
+
const path = `/organizations/${params.id}`;
|
|
31
31
|
return this.client.request('DELETE', path);
|
|
32
32
|
}
|
|
33
33
|
async getOrganizationBySlug(params) {
|
|
34
|
-
const path = `/slug/${params.slug}`;
|
|
34
|
+
const path = `/organizations/slug/${params.slug}`;
|
|
35
35
|
return this.client.request('GET', path);
|
|
36
36
|
}
|
|
37
|
-
async listMembers() {
|
|
38
|
-
const path =
|
|
37
|
+
async listMembers(params) {
|
|
38
|
+
const path = `/organizations/${params.id}/members`;
|
|
39
39
|
return this.client.request('GET', path);
|
|
40
40
|
}
|
|
41
|
-
async inviteMember() {
|
|
42
|
-
const path =
|
|
41
|
+
async inviteMember(params) {
|
|
42
|
+
const path = `/organizations/${params.id}/members/invite`;
|
|
43
43
|
return this.client.request('POST', path);
|
|
44
44
|
}
|
|
45
45
|
async updateMember(params) {
|
|
46
|
-
const path =
|
|
46
|
+
const path = `/organizations/${params.id}/members/${params.memberId}`;
|
|
47
47
|
return this.client.request('PATCH', path);
|
|
48
48
|
}
|
|
49
49
|
async removeMember(params) {
|
|
50
|
-
const path =
|
|
50
|
+
const path = `/organizations/${params.id}/members/${params.memberId}`;
|
|
51
51
|
return this.client.request('DELETE', path);
|
|
52
52
|
}
|
|
53
53
|
async acceptInvitation(params) {
|
|
54
|
-
const path =
|
|
54
|
+
const path = `/organization-invitations/${params.token}/accept`;
|
|
55
55
|
return this.client.request('POST', path);
|
|
56
56
|
}
|
|
57
57
|
async declineInvitation(params) {
|
|
58
|
-
const path =
|
|
58
|
+
const path = `/organization-invitations/${params.token}/decline`;
|
|
59
59
|
return this.client.request('POST', path);
|
|
60
60
|
}
|
|
61
|
-
async listTeams() {
|
|
62
|
-
const path =
|
|
61
|
+
async listTeams(params) {
|
|
62
|
+
const path = `/organizations/${params.id}/teams`;
|
|
63
63
|
return this.client.request('GET', path);
|
|
64
64
|
}
|
|
65
|
-
async createTeam() {
|
|
66
|
-
const path =
|
|
65
|
+
async createTeam(params) {
|
|
66
|
+
const path = `/organizations/${params.id}/teams`;
|
|
67
67
|
return this.client.request('POST', path);
|
|
68
68
|
}
|
|
69
69
|
async updateTeam(params) {
|
|
70
|
-
const path =
|
|
70
|
+
const path = `/organizations/${params.id}/teams/${params.teamId}`;
|
|
71
71
|
return this.client.request('PATCH', path);
|
|
72
72
|
}
|
|
73
73
|
async deleteTeam(params) {
|
|
74
|
-
const path =
|
|
74
|
+
const path = `/organizations/${params.id}/teams/${params.teamId}`;
|
|
75
75
|
return this.client.request('DELETE', path);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -11,17 +11,17 @@ class PermissionsPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async migrateAll(request) {
|
|
14
|
-
const path = '/migrate/all';
|
|
14
|
+
const path = '/permissions/migrate/all';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async migrateRoles() {
|
|
20
|
-
const path = '/migrate/roles';
|
|
20
|
+
const path = '/permissions/migrate/roles';
|
|
21
21
|
return this.client.request('POST', path);
|
|
22
22
|
}
|
|
23
23
|
async previewConversion(request) {
|
|
24
|
-
const path = '/migrate/preview';
|
|
24
|
+
const path = '/permissions/migrate/preview';
|
|
25
25
|
return this.client.request('POST', path, {
|
|
26
26
|
body: request,
|
|
27
27
|
});
|
|
@@ -24,8 +24,8 @@ export declare class SecretsPlugin implements ClientPlugin {
|
|
|
24
24
|
id: string;
|
|
25
25
|
}, request?: types.GetVersionsRequest): Promise<types.ListVersionsResponse>;
|
|
26
26
|
rollback(params: {
|
|
27
|
-
id: string;
|
|
28
27
|
version: number;
|
|
28
|
+
id: string;
|
|
29
29
|
}, request: types.RollbackRequest): Promise<types.SecretDTO>;
|
|
30
30
|
getStats(): Promise<types.StatsDTO>;
|
|
31
31
|
getTree(request?: types.GetTreeRequest): Promise<types.SecretTreeNode>;
|
package/dist/plugins/secrets.js
CHANGED
|
@@ -11,63 +11,63 @@ class SecretsPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async list(request) {
|
|
14
|
-
const path = '/
|
|
14
|
+
const path = '/secrets';
|
|
15
15
|
return this.client.request('GET', path, {
|
|
16
16
|
query: this.client.toQueryParams(request),
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async create(request) {
|
|
20
|
-
const path = '/
|
|
20
|
+
const path = '/secrets';
|
|
21
21
|
return this.client.request('POST', path, {
|
|
22
22
|
body: request,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
async get(params, request) {
|
|
26
|
-
const path =
|
|
26
|
+
const path = `/secrets/${params.id}`;
|
|
27
27
|
return this.client.request('GET', path, {
|
|
28
28
|
query: this.client.toQueryParams(request),
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
async getValue(params, request) {
|
|
32
|
-
const path =
|
|
32
|
+
const path = `/secrets/${params.id}/value`;
|
|
33
33
|
return this.client.request('GET', path, {
|
|
34
34
|
query: this.client.toQueryParams(request),
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
async update(params, request) {
|
|
38
|
-
const path =
|
|
38
|
+
const path = `/secrets/${params.id}`;
|
|
39
39
|
return this.client.request('PUT', path, {
|
|
40
40
|
body: request,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
async delete(params, request) {
|
|
44
|
-
const path =
|
|
44
|
+
const path = `/secrets/${params.id}`;
|
|
45
45
|
return this.client.request('DELETE', path, {
|
|
46
46
|
query: this.client.toQueryParams(request),
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
async getByPath() {
|
|
50
|
-
const path = '/path/*path';
|
|
50
|
+
const path = '/secrets/path/*path';
|
|
51
51
|
return this.client.request('GET', path);
|
|
52
52
|
}
|
|
53
53
|
async getVersions(params, request) {
|
|
54
|
-
const path =
|
|
54
|
+
const path = `/secrets/${params.id}/versions`;
|
|
55
55
|
return this.client.request('GET', path, {
|
|
56
56
|
query: this.client.toQueryParams(request),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
async rollback(params, request) {
|
|
60
|
-
const path =
|
|
60
|
+
const path = `/secrets/${params.id}/rollback/${params.version}`;
|
|
61
61
|
return this.client.request('POST', path, {
|
|
62
62
|
body: request,
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
async getStats() {
|
|
66
|
-
const path = '/stats';
|
|
66
|
+
const path = '/secrets/stats';
|
|
67
67
|
return this.client.request('GET', path);
|
|
68
68
|
}
|
|
69
69
|
async getTree(request) {
|
|
70
|
-
const path = '/tree';
|
|
70
|
+
const path = '/secrets/tree';
|
|
71
71
|
return this.client.request('GET', path, {
|
|
72
72
|
query: this.client.toQueryParams(request),
|
|
73
73
|
});
|
package/dist/plugins/sso.js
CHANGED
|
@@ -11,33 +11,33 @@ class SsoPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async registerProvider(request) {
|
|
14
|
-
const path = '/provider/register';
|
|
14
|
+
const path = '/sso/provider/register';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async sAMLSPMetadata() {
|
|
20
|
-
const path = '/saml2/sp/metadata';
|
|
20
|
+
const path = '/sso/saml2/sp/metadata';
|
|
21
21
|
return this.client.request('GET', path);
|
|
22
22
|
}
|
|
23
23
|
async sAMLLogin(params, request) {
|
|
24
|
-
const path = `/saml2/login/${params.providerId}`;
|
|
24
|
+
const path = `/sso/saml2/login/${params.providerId}`;
|
|
25
25
|
return this.client.request('POST', path, {
|
|
26
26
|
body: request,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
async sAMLCallback(params) {
|
|
30
|
-
const path = `/saml2/callback/${params.providerId}`;
|
|
30
|
+
const path = `/sso/saml2/callback/${params.providerId}`;
|
|
31
31
|
return this.client.request('POST', path);
|
|
32
32
|
}
|
|
33
33
|
async oIDCLogin(params, request) {
|
|
34
|
-
const path = `/oidc/login/${params.providerId}`;
|
|
34
|
+
const path = `/sso/oidc/login/${params.providerId}`;
|
|
35
35
|
return this.client.request('POST', path, {
|
|
36
36
|
body: request,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
async oIDCCallback(params) {
|
|
40
|
-
const path = `/oidc/callback/${params.providerId}`;
|
|
40
|
+
const path = `/sso/oidc/callback/${params.providerId}`;
|
|
41
41
|
return this.client.request('GET', path);
|
|
42
42
|
}
|
|
43
43
|
}
|
package/dist/plugins/stepup.js
CHANGED
|
@@ -11,67 +11,67 @@ class StepupPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async evaluate(request) {
|
|
14
|
-
const path = '/evaluate';
|
|
14
|
+
const path = '/stepup/evaluate';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async verify(request) {
|
|
20
|
-
const path = '/verify';
|
|
20
|
+
const path = '/stepup/verify';
|
|
21
21
|
return this.client.request('POST', path, {
|
|
22
22
|
body: request,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
async getRequirement(params) {
|
|
26
|
-
const path = `/requirements/${params.id}`;
|
|
26
|
+
const path = `/stepup/requirements/${params.id}`;
|
|
27
27
|
return this.client.request('GET', path);
|
|
28
28
|
}
|
|
29
29
|
async listPendingRequirements() {
|
|
30
|
-
const path = '/requirements/pending';
|
|
30
|
+
const path = '/stepup/requirements/pending';
|
|
31
31
|
return this.client.request('GET', path);
|
|
32
32
|
}
|
|
33
33
|
async listVerifications() {
|
|
34
|
-
const path = '/verifications';
|
|
34
|
+
const path = '/stepup/verifications';
|
|
35
35
|
return this.client.request('GET', path);
|
|
36
36
|
}
|
|
37
37
|
async listRememberedDevices() {
|
|
38
|
-
const path = '/devices';
|
|
38
|
+
const path = '/stepup/devices';
|
|
39
39
|
return this.client.request('GET', path);
|
|
40
40
|
}
|
|
41
41
|
async forgetDevice(params) {
|
|
42
|
-
const path = `/devices/${params.id}`;
|
|
42
|
+
const path = `/stepup/devices/${params.id}`;
|
|
43
43
|
return this.client.request('DELETE', path);
|
|
44
44
|
}
|
|
45
45
|
async createPolicy(request) {
|
|
46
|
-
const path = '/policies';
|
|
46
|
+
const path = '/stepup/policies';
|
|
47
47
|
return this.client.request('POST', path, {
|
|
48
48
|
body: request,
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
async listPolicies() {
|
|
52
|
-
const path = '/policies';
|
|
52
|
+
const path = '/stepup/policies';
|
|
53
53
|
return this.client.request('GET', path);
|
|
54
54
|
}
|
|
55
55
|
async getPolicy(params) {
|
|
56
|
-
const path = `/policies/${params.id}`;
|
|
56
|
+
const path = `/stepup/policies/${params.id}`;
|
|
57
57
|
return this.client.request('GET', path);
|
|
58
58
|
}
|
|
59
59
|
async updatePolicy(params, request) {
|
|
60
|
-
const path = `/policies/${params.id}`;
|
|
60
|
+
const path = `/stepup/policies/${params.id}`;
|
|
61
61
|
return this.client.request('PUT', path, {
|
|
62
62
|
body: request,
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
async deletePolicy(params) {
|
|
66
|
-
const path = `/policies/${params.id}`;
|
|
66
|
+
const path = `/stepup/policies/${params.id}`;
|
|
67
67
|
return this.client.request('DELETE', path);
|
|
68
68
|
}
|
|
69
69
|
async getAuditLogs() {
|
|
70
|
-
const path = '/audit';
|
|
70
|
+
const path = '/stepup/audit';
|
|
71
71
|
return this.client.request('GET', path);
|
|
72
72
|
}
|
|
73
73
|
async status() {
|
|
74
|
-
const path = '/status';
|
|
74
|
+
const path = '/stepup/status';
|
|
75
75
|
return this.client.request('GET', path);
|
|
76
76
|
}
|
|
77
77
|
}
|