This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkinvey-auth-services.d.ts
96 lines (82 loc) · 2.15 KB
/
kinvey-auth-services.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
interface IKinveyAuthServiceRequestInput {
name: string;
customizedLogin?: IKinveyCustomizedLogin;
redirectUri?: string[];
grantTtl?: number;
tokenTtl?: number;
refresh?: boolean;
refreshTtl?: number;
provider: IKinveyAuthProvider;
access?: IKinveyAuthServiceAccess;
description?: string;
identityStoreId: string;
}
interface IKinveyAuthService extends IKinveyAuthServiceRequestInput {
id: string;
}
interface IKinveyCustomizedLogin {
type: string;
url: string;
}
interface IKinveyAuthServiceAccess {
writers: IKinveyAccessWriters;
readers: IKinveyAccessReaders;
}
interface IKinveyAuthProvider {
type: string;
remoteService: string;
authentication?: IKinveyAuthProviderAuthentication | string;
options: IKinveyAuthProviderOptions;
allowedAttributes?: string[];
datalinkHeaderMapping?: any;
uniqueUserContextField?: string;
}
type IKinveyAuthProviderOptions = IKinveySamlRedirectOptions | IKinveyOAuth2Options | IKinveyOIDCOptions;
interface IKinveyAuthProviderAuthentication {
username: string;
password: string;
}
interface IKinveySamlRedirectOptions {
wrapScope?: string;
baseDn?: string;
logoutUri?: string;
idpCertificate: string;
proxy?: boolean;
nameIdFormat?: string;
key?: string;
issuer?: string;
audiance?: string;
}
interface IKinveyOAuthOptionsBase {
grantEndpoint: string;
clientId: string;
clientSecret: string;
userIdAttribute?: string;
userIdEndpoint?: string;
scope: string;
grantType?: string;
}
interface IKinveyOAuth2Options extends IKinveyOAuthOptionsBase {
includeClientIdInTokenRequest?: boolean;
includeClientSecretInTokenRequest?: boolean;
}
interface IKinveyOIDCOptions extends IKinveyOAuthOptionsBase {
issuerId: string;
}
interface IEnvironmentId {
environmentId: string;
}
interface ICreateKinveyAuthService extends IEnvironmentId {
appId: string;
redirectUri?: string[];
authServiceOptions: IKinveyAuthServiceRequestInput;
identityStoreOptions?: ICreateKinveyIdentityStoreInput;
}
interface IUpdateKinveyAuthService {
authServiceId: string;
authService: IKinveyAuthServiceRequestInput;
}
interface IChangeDefaultKinveyAuthService extends IEnvironmentId {
authServiceId: string;
identityStoreId: string;
}