File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 1
- export interface AppAuthInput {
1
+ export interface AuthConfiguration extends BaseAuthConfiguration {
2
2
scopes : string [ ] ;
3
- issuer : string ;
4
- clientId : string ;
5
3
redirectUrl : string ;
6
4
aditionalParameters ?: object ;
7
5
}
8
6
7
+ export interface BaseAuthConfiguration {
8
+ issuer : string ;
9
+ clientId : string ;
10
+ }
11
+
12
+ export interface RevokeConfiguration {
13
+ clientId : string ;
14
+ issuer : string ;
15
+ }
16
+
9
17
export interface AuthorizeResult {
10
18
accessToken : string ;
11
19
accessTokenExpirationDate : string ;
@@ -15,14 +23,19 @@ export interface AppAuthInput {
15
23
tokenType : string ;
16
24
}
17
25
18
- export function authorize ( properties : AppAuthInput ) : Promise < AuthorizeResult > ;
26
+ export interface RevokeOptions {
27
+ tokenToRevoke : string ;
28
+ sendClientId ?: boolean ;
29
+ }
30
+
31
+ export function authorize ( properties : AuthConfiguration ) : Promise < AuthorizeResult > ;
19
32
20
33
export function refresh (
21
- properties : AppAuthInput ,
34
+ properties : AuthConfiguration ,
22
35
{ refreshToken : string }
23
36
) : Promise < AuthorizeResult > ;
24
37
25
38
export function revoke (
26
- properties : AppAuthInput ,
27
- { tokenToRevoke : string , sendClientId : boolean }
39
+ properties : BaseAuthConfiguration ,
40
+ options : RevokeOptions
28
41
) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments