@luizleon/sf.prefeiturasp.vuecomponents 4.0.4 → 4.0.6
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/services/authService.d.ts +130 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs +60 -60
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +5461 -5443
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +36 -36
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,5 +1,133 @@
|
|
|
1
1
|
import { IAuthService } from '../types';
|
|
2
|
-
import { KeycloakConfig } from './../keycloak';
|
|
3
|
-
declare const UseAuthService: () =>
|
|
2
|
+
import { KeycloakConfig, KeycloakInitOptions } from './../keycloak';
|
|
3
|
+
declare const UseAuthService: () => {
|
|
4
|
+
Instance: {
|
|
5
|
+
authenticated?: boolean | undefined;
|
|
6
|
+
subject?: string | undefined;
|
|
7
|
+
responseMode?: import('./../keycloak').KeycloakResponseMode | undefined;
|
|
8
|
+
responseType?: import('./../keycloak').KeycloakResponseType | undefined;
|
|
9
|
+
flow?: import('./../keycloak').KeycloakFlow | undefined;
|
|
10
|
+
realmAccess?: {
|
|
11
|
+
roles: string[];
|
|
12
|
+
} | undefined;
|
|
13
|
+
resourceAccess?: import('./../keycloak').KeycloakResourceAccess | undefined;
|
|
14
|
+
token?: string | undefined;
|
|
15
|
+
tokenParsed?: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
iss?: string | undefined;
|
|
18
|
+
sub?: string | undefined;
|
|
19
|
+
aud?: string | undefined;
|
|
20
|
+
exp?: number | undefined;
|
|
21
|
+
iat?: number | undefined;
|
|
22
|
+
auth_time?: number | undefined;
|
|
23
|
+
nonce?: string | undefined;
|
|
24
|
+
acr?: string | undefined;
|
|
25
|
+
amr?: string | undefined;
|
|
26
|
+
azp?: string | undefined;
|
|
27
|
+
session_state?: string | undefined;
|
|
28
|
+
realm_access?: {
|
|
29
|
+
roles: string[];
|
|
30
|
+
} | undefined;
|
|
31
|
+
resource_access?: import('./../keycloak').KeycloakResourceAccess | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
refreshToken?: string | undefined;
|
|
34
|
+
refreshTokenParsed?: {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
iss?: string | undefined;
|
|
37
|
+
sub?: string | undefined;
|
|
38
|
+
aud?: string | undefined;
|
|
39
|
+
exp?: number | undefined;
|
|
40
|
+
iat?: number | undefined;
|
|
41
|
+
auth_time?: number | undefined;
|
|
42
|
+
nonce?: string | undefined;
|
|
43
|
+
acr?: string | undefined;
|
|
44
|
+
amr?: string | undefined;
|
|
45
|
+
azp?: string | undefined;
|
|
46
|
+
session_state?: string | undefined;
|
|
47
|
+
realm_access?: {
|
|
48
|
+
roles: string[];
|
|
49
|
+
} | undefined;
|
|
50
|
+
resource_access?: import('./../keycloak').KeycloakResourceAccess | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
idToken?: string | undefined;
|
|
53
|
+
idTokenParsed?: {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
iss?: string | undefined;
|
|
56
|
+
sub?: string | undefined;
|
|
57
|
+
aud?: string | undefined;
|
|
58
|
+
exp?: number | undefined;
|
|
59
|
+
iat?: number | undefined;
|
|
60
|
+
auth_time?: number | undefined;
|
|
61
|
+
nonce?: string | undefined;
|
|
62
|
+
acr?: string | undefined;
|
|
63
|
+
amr?: string | undefined;
|
|
64
|
+
azp?: string | undefined;
|
|
65
|
+
session_state?: string | undefined;
|
|
66
|
+
realm_access?: {
|
|
67
|
+
roles: string[];
|
|
68
|
+
} | undefined;
|
|
69
|
+
resource_access?: import('./../keycloak').KeycloakResourceAccess | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
timeSkew?: number | undefined;
|
|
72
|
+
loginRequired?: boolean | undefined;
|
|
73
|
+
authServerUrl?: string | undefined;
|
|
74
|
+
realm?: string | undefined;
|
|
75
|
+
clientId?: string | undefined;
|
|
76
|
+
redirectUri?: string | undefined;
|
|
77
|
+
sessionId?: string | undefined;
|
|
78
|
+
profile?: {
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
username?: string | undefined;
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
firstName?: string | undefined;
|
|
83
|
+
lastName?: string | undefined;
|
|
84
|
+
enabled?: boolean | undefined;
|
|
85
|
+
emailVerified?: boolean | undefined;
|
|
86
|
+
totp?: boolean | undefined;
|
|
87
|
+
createdTimestamp?: number | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
userInfo?: {} | undefined;
|
|
90
|
+
onReady?: ((authenticated?: boolean | undefined) => void) | undefined;
|
|
91
|
+
onAuthSuccess?: (() => void) | undefined;
|
|
92
|
+
onAuthError?: ((errorData: import('./../keycloak').KeycloakError) => void) | undefined;
|
|
93
|
+
onAuthRefreshSuccess?: (() => void) | undefined;
|
|
94
|
+
onAuthRefreshError?: (() => void) | undefined;
|
|
95
|
+
onAuthLogout?: (() => void) | undefined;
|
|
96
|
+
onTokenExpired?: (() => void) | undefined;
|
|
97
|
+
onActionUpdate?: ((status: "success" | "error" | "cancelled") => void) | undefined;
|
|
98
|
+
init: (initOptions: KeycloakInitOptions) => Promise<boolean>;
|
|
99
|
+
login: (options?: import('./../keycloak').KeycloakLoginOptions | undefined) => Promise<void>;
|
|
100
|
+
logout: (options?: import('./../keycloak').KeycloakLogoutOptions | undefined) => Promise<void>;
|
|
101
|
+
register: (options?: import('./../keycloak').KeycloakRegisterOptions | undefined) => Promise<void>;
|
|
102
|
+
accountManagement: () => Promise<void>;
|
|
103
|
+
createLoginUrl: (options?: import('./../keycloak').KeycloakLoginOptions | undefined) => string;
|
|
104
|
+
createLogoutUrl: (options?: import('./../keycloak').KeycloakLogoutOptions | undefined) => string;
|
|
105
|
+
createRegisterUrl: (options?: import('./../keycloak').KeycloakRegisterOptions | undefined) => string;
|
|
106
|
+
createAccountUrl: (options?: import('./../keycloak').KeycloakAccountOptions | undefined) => string;
|
|
107
|
+
isTokenExpired: (minValidity?: number | undefined) => boolean;
|
|
108
|
+
updateToken: (minValidity?: number | undefined) => Promise<boolean>;
|
|
109
|
+
clearToken: () => void;
|
|
110
|
+
setToken: (token: any, refreshToken: any, idToken: any, timeLocal?: number | undefined) => void;
|
|
111
|
+
hasRealmRole: (role: string) => boolean;
|
|
112
|
+
hasResourceRole: (role: string, resource?: string | undefined) => boolean;
|
|
113
|
+
loadUserProfile: () => Promise<import('./../keycloak').KeycloakProfile>;
|
|
114
|
+
loadUserInfo: () => Promise<{}>;
|
|
115
|
+
};
|
|
116
|
+
Init: (initOptions?: KeycloakInitOptions | undefined, callback?: (() => void) | undefined) => Promise<void>;
|
|
117
|
+
Logout: () => void;
|
|
118
|
+
isAuthenticated: boolean;
|
|
119
|
+
User?: {
|
|
120
|
+
name: string;
|
|
121
|
+
email: string;
|
|
122
|
+
username: string;
|
|
123
|
+
roles: string[];
|
|
124
|
+
groups: string[];
|
|
125
|
+
emailVerified: boolean;
|
|
126
|
+
firstName: string;
|
|
127
|
+
lastName: string;
|
|
128
|
+
sub: string;
|
|
129
|
+
IsInRole: (role: string) => boolean;
|
|
130
|
+
} | undefined;
|
|
131
|
+
};
|
|
4
132
|
declare const StartAuthService: (config: KeycloakConfig) => IAuthService;
|
|
5
133
|
export { StartAuthService, UseAuthService };
|