generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
baseClient.ts
67 lines (61 loc) · 1.33 KB
/
baseClient.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
export interface BaseClient {
baseClientId: string
clientType: string
accessTokenValidity: number
scopes: string[]
grantType: string
audit: string
count: number
clientCredentials: ClientCredentialsDetails
authorisationCode: AuthorisationCodeDetails
service: ServiceDetails
deployment: DeploymentDetails
config: ClientConfig
}
interface ClientCredentialsDetails {
authorities: string[]
databaseUserName: string
}
interface AuthorisationCodeDetails {
registeredRedirectURIs: string[]
jwtFields: string
azureAdLoginFlow: boolean
}
interface ServiceDetails {
serviceName: string
description: string
authorisedRoles: string[]
url: string
contact: string
status: string
}
interface DeploymentDetails {
team: string
teamContact: string
teamSlack: string
hosting: string
namespace: string
deployment: string
secretName: string
clientIdKey: string
secretKey: string
deploymentInfo: string
}
interface ClientConfig {
expiryDate?: string
allowedIPs: string[]
}
export interface ClientSecrets {
clientId: string
clientSecret: string
base64ClientId: string
base64ClientSecret: string
}
export interface BaseClientListFilter {
roleSearch: string
clientCredentials: boolean
authorisationCode: boolean
serviceClientType: boolean
personalClientType: boolean
blankClientType: boolean
}