@univerjs/protocol 0.1.17 → 0.1.18
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/lib/types/ts/v1/conf.d.ts +17 -0
- package/lib/types/ts/v1/oauth2.d.ts +24 -0
- package/package.json +1 -1
|
@@ -95,6 +95,7 @@ export interface Config {
|
|
|
95
95
|
export interface Auth {
|
|
96
96
|
enabled: boolean;
|
|
97
97
|
oidc: Auth_OIDC | undefined;
|
|
98
|
+
oauth2: Auth_Oauth2 | undefined;
|
|
98
99
|
}
|
|
99
100
|
export interface Auth_OIDC {
|
|
100
101
|
issuer: string;
|
|
@@ -102,6 +103,22 @@ export interface Auth_OIDC {
|
|
|
102
103
|
clientSecret: string;
|
|
103
104
|
redirectURL: string;
|
|
104
105
|
cookieDomain: string;
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface Auth_Oauth2 {
|
|
109
|
+
clientID: string;
|
|
110
|
+
clientSecret: string;
|
|
111
|
+
redirectURL: string;
|
|
112
|
+
cookieDomain: string;
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
authURL: string;
|
|
115
|
+
tokenURL: string;
|
|
116
|
+
apiURL: string;
|
|
117
|
+
scopes: string;
|
|
118
|
+
openidPath: string;
|
|
119
|
+
emailPath: string;
|
|
120
|
+
namePath: string;
|
|
121
|
+
avatarPath: string;
|
|
105
122
|
}
|
|
106
123
|
export interface ApiLimit {
|
|
107
124
|
method: ApiLimit_TokenLimit | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Metadata } from "@grpc/grpc-js";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import type { Error } from "../univer/constants/errors";
|
|
4
|
+
export declare const protobufPackage = "universer.v1";
|
|
5
|
+
export interface Oauth2PageRequest {
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Oauth2PageResponse {
|
|
9
|
+
error: Error | undefined;
|
|
10
|
+
redirectUri: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Oauth2CallbackRequest {
|
|
13
|
+
code: string;
|
|
14
|
+
state: string;
|
|
15
|
+
redirectUri: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Oauth2CallbackResponse {
|
|
18
|
+
error: Error | undefined;
|
|
19
|
+
redirectUri: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Oauth2Service {
|
|
22
|
+
AuthPage(request: Oauth2PageRequest, metadata?: Metadata): Observable<Oauth2PageResponse>;
|
|
23
|
+
AuthCallback(request: Oauth2CallbackRequest, metadata?: Metadata): Observable<Oauth2CallbackResponse>;
|
|
24
|
+
}
|