You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/backend/src/api/resources/OAuthApplication.ts
+73Lines changed: 73 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,89 @@
1
1
importtype{OAuthApplicationJSON}from'./JSON';
2
2
3
+
/**
4
+
* The Backend `OAuthApplication` object holds information about an OAuth application.
5
+
*/
3
6
exportclassOAuthApplication{
4
7
constructor(
8
+
/**
9
+
* The unique identifier for the OAuth application.
10
+
*/
5
11
readonlyid: string,
12
+
/**
13
+
* The ID of the instance that this OAuth application belongs to.
14
+
*/
6
15
readonlyinstanceId: string,
16
+
/**
17
+
* The name of the new OAuth application.
18
+
*/
7
19
readonlyname: string,
20
+
/**
21
+
* The ID of the client associated with the OAuth application.
22
+
*/
8
23
readonlyclientId: string,
24
+
/**
25
+
* The public-facing URL of the OAuth application, often shown on consent screens.
26
+
*/
27
+
readonlyclientUri: string|null,
28
+
/**
29
+
* The URL of the image or logo representing the OAuth application.
30
+
*/
31
+
readonlyclientImageUrl: string|null,
32
+
/**
33
+
* Specifies whether the OAuth application is dynamically registered.
34
+
*/
35
+
readonlydynamicallyRegistered: boolean,
36
+
/**
37
+
* Specifies whether the consent screen should be displayed in the authentication flow. Cannot be disabled for dynamically registered OAuth applications.
38
+
*/
39
+
readonlyconsentScreenEnabled: boolean,
40
+
/**
41
+
* Specifies whether the Proof Key of Code Exchange (PKCE) flow should be required in the authentication flow.
42
+
*/
43
+
readonlypkceRequired: boolean,
44
+
/**
45
+
* Indicates whether the client is public. If true, the Proof Key of Code Exchange (PKCE) flow can be used.
46
+
*/
9
47
readonlyisPublic: boolean,// NOTE: `public` is reserved
48
+
/**
49
+
* Scopes for the new OAuth application.
50
+
*/
10
51
readonlyscopes: string,
52
+
/**
53
+
* An array of redirect URIs of the new OAuth application.
54
+
*/
11
55
readonlyredirectUris: Array<string>,
56
+
/**
57
+
* The URL used to authorize the user and obtain an authorization code.
58
+
*/
12
59
readonlyauthorizeUrl: string,
60
+
/**
61
+
* The URL used by the client to exchange an authorization code for an access token.
62
+
*/
13
63
readonlytokenFetchUrl: string,
64
+
/**
65
+
* The URL where the client can retrieve user information using an access token.
66
+
*/
14
67
readonlyuserInfoUrl: string,
68
+
/**
69
+
* The OpenID Connect discovery endpoint URL for this OAuth application.
70
+
*/
15
71
readonlydiscoveryUrl: string,
72
+
/**
73
+
* The URL used to introspect and validate issued access tokens.
74
+
*/
16
75
readonlytokenIntrospectionUrl: string,
76
+
/**
77
+
* The date when the OAuth application was first created.
78
+
*/
17
79
readonlycreatedAt: number,
80
+
/**
81
+
* The date when the OAuth application was last updated.
82
+
*/
18
83
readonlyupdatedAt: number,
84
+
/**
85
+
* The client secret associated with the OAuth application. Empty if public client.
86
+
*/
19
87
readonlyclientSecret?: string,
20
88
){}
21
89
@@ -25,6 +93,11 @@ export class OAuthApplication {
0 commit comments