@nsshunt/stsoauth2plugin 0.1.10 → 0.1.13
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/dist/stsoauth2plugin.es.js +14 -6
- package/dist/stsoauth2plugin.umd.js +6 -6
- package/package.json +2 -2
- package/src/stsoauth2manager.ts +9 -0
- package/dist/assets/stsoauth2worker.56b3b966.js +0 -7
- package/types/Utils/CryptoUtils.d.ts +0 -7
- package/types/Utils/CryptoUtils.d.ts.map +0 -1
- package/types/Utils/QueryParams.d.ts +0 -8
- package/types/Utils/QueryParams.d.ts.map +0 -1
- package/types/index.d.ts +0 -6
- package/types/index.d.ts.map +0 -1
- package/types/index.test.d.ts +0 -1
- package/types/index.test.d.ts.map +0 -1
- package/types/stsStorage.d.ts +0 -22
- package/types/stsStorage.d.ts.map +0 -1
- package/types/stsoauth2manager.d.ts +0 -11
- package/types/stsoauth2manager.d.ts.map +0 -1
- package/types/stsoauth2types.d.ts +0 -89
- package/types/stsoauth2types.d.ts.map +0 -1
- package/types/stsoauth2worker.d.ts +0 -2
- package/types/stsoauth2worker.d.ts.map +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Router } from 'vue-router';
|
|
2
|
-
export declare enum AuthorizeOptionsResponseType {
|
|
3
|
-
CODE = "code",
|
|
4
|
-
ID_TOKEN = "id_token",
|
|
5
|
-
TOKEN = "token"
|
|
6
|
-
}
|
|
7
|
-
export declare enum AuthorizeOptionsResponseMode {
|
|
8
|
-
QUERY = "query",
|
|
9
|
-
FRAGMENT = "fragment",
|
|
10
|
-
FORM_POST = "form_post"
|
|
11
|
-
}
|
|
12
|
-
export interface IAuthorizeOptions {
|
|
13
|
-
client_id: string;
|
|
14
|
-
nonce: string;
|
|
15
|
-
response_type: AuthorizeOptionsResponseType[];
|
|
16
|
-
redirect_uri: string;
|
|
17
|
-
response_mode: AuthorizeOptionsResponseMode;
|
|
18
|
-
scope: string;
|
|
19
|
-
state: string;
|
|
20
|
-
code_challenge: string;
|
|
21
|
-
code_challenge_method: string;
|
|
22
|
-
code_verifier?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IAuthorizeResponse {
|
|
25
|
-
state: string;
|
|
26
|
-
code: string;
|
|
27
|
-
}
|
|
28
|
-
export interface IAuthorizeErrorResponse {
|
|
29
|
-
error: string;
|
|
30
|
-
error_description: string;
|
|
31
|
-
}
|
|
32
|
-
export declare enum OAuthGrantTypes {
|
|
33
|
-
CLIENT_CREDENTIALS = "client_credentials",
|
|
34
|
-
AUTHORIZATION_CODE = "authorization_code",
|
|
35
|
-
REFRESH_TOKEN = "refresh_token"
|
|
36
|
-
}
|
|
37
|
-
export interface IAuthorizationCodeFlowParameters {
|
|
38
|
-
client_id: string;
|
|
39
|
-
scope: string;
|
|
40
|
-
code: string;
|
|
41
|
-
redirect_uri: string;
|
|
42
|
-
grant_type: OAuthGrantTypes;
|
|
43
|
-
code_verifier: string;
|
|
44
|
-
}
|
|
45
|
-
export interface IRefreshFlowParameters {
|
|
46
|
-
client_id: string;
|
|
47
|
-
scope: string;
|
|
48
|
-
refresh_token: string;
|
|
49
|
-
grant_type: OAuthGrantTypes;
|
|
50
|
-
}
|
|
51
|
-
export interface ITokenResponse {
|
|
52
|
-
access_token: string;
|
|
53
|
-
token_type: string;
|
|
54
|
-
expires_in: number;
|
|
55
|
-
scope: string;
|
|
56
|
-
refresh_token: string;
|
|
57
|
-
id_token: string;
|
|
58
|
-
}
|
|
59
|
-
export interface ITokenErrorResponse {
|
|
60
|
-
error: string;
|
|
61
|
-
error_description: string;
|
|
62
|
-
error_codes: number[];
|
|
63
|
-
timestamp: number;
|
|
64
|
-
details: unknown;
|
|
65
|
-
}
|
|
66
|
-
export declare type AuthenticateEvent = (id_token: string) => void;
|
|
67
|
-
export declare enum IOauth2ListenerCommand {
|
|
68
|
-
RESTORE_SESSION = "RestoreSession",
|
|
69
|
-
AUTHORIZE = "Authorize",
|
|
70
|
-
HANDLE_REDIRECT = "HandleRedirect",
|
|
71
|
-
LOGOUT = "Logout",
|
|
72
|
-
AUTHENTICATE_EVENT = "AuthenticateEvent",
|
|
73
|
-
ERROR = "Error"
|
|
74
|
-
}
|
|
75
|
-
export interface IOauth2ListenerMessage {
|
|
76
|
-
messageId?: number;
|
|
77
|
-
command: IOauth2ListenerCommand;
|
|
78
|
-
payload?: any;
|
|
79
|
-
}
|
|
80
|
-
export interface IOauth2ListenerMessageResponse {
|
|
81
|
-
messageId: number;
|
|
82
|
-
command: IOauth2ListenerCommand;
|
|
83
|
-
payload: any;
|
|
84
|
-
}
|
|
85
|
-
export interface ISTSOAuth2ManagerOptions {
|
|
86
|
-
router: Router;
|
|
87
|
-
authenticateEvent?: AuthenticateEvent;
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=stsoauth2types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stsoauth2types.d.ts","sourceRoot":"","sources":["../src/stsoauth2types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAEnC,oBAAY,4BAA4B;IACvC,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,KAAK,UAAU;CACf;AAED,oBAAY,4BAA4B;IACvC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;CACvB;AAGD,MAAM,WAAW,iBAAiB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,4BAA4B,EAAE,CAAC;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,4BAA4B,CAAA;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,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