@samhammer/authentication-vue 2.0.5 → 2.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/lib/AuthOptions.d.ts +2 -0
- package/lib/AuthPlugin.js +3 -1
- package/package.json +47 -47
package/lib/AuthOptions.d.ts
CHANGED
package/lib/AuthPlugin.js
CHANGED
|
@@ -101,6 +101,7 @@ class KeycloakPlugin {
|
|
|
101
101
|
});
|
|
102
102
|
this.pluginState = {
|
|
103
103
|
keycloak: keycloak,
|
|
104
|
+
authOptios: authOptions,
|
|
104
105
|
accessTokenKey: `${authOptions.appClientId}-accessToken`,
|
|
105
106
|
refreshTokenKey: `${authOptions.appClientId}-refreshToken`,
|
|
106
107
|
idTokenKey: `${authOptions.appClientId}-idToken`
|
|
@@ -125,7 +126,8 @@ class KeycloakPlugin {
|
|
|
125
126
|
enableLogging: false,
|
|
126
127
|
refreshToken: LocalStorageUtils.getItem(this.pluginState.refreshTokenKey),
|
|
127
128
|
token: LocalStorageUtils.getItem(this.pluginState.accessTokenKey),
|
|
128
|
-
idToken: LocalStorageUtils.getItem(this.pluginState.idTokenKey)
|
|
129
|
+
idToken: LocalStorageUtils.getItem(this.pluginState.idTokenKey),
|
|
130
|
+
...this.pluginState.authOptios.keycloakInitOptions
|
|
129
131
|
});
|
|
130
132
|
if (authenticated) {
|
|
131
133
|
console.debug("authenticated keycloak");
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@samhammer/authentication-vue",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Keycloak authentication for VueJS projects",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"typings": "lib/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib/**/*"
|
|
9
|
-
],
|
|
10
|
-
"repository": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue",
|
|
11
|
-
"author": "SamhammerAG (https://www.samhammer.de/)",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue/issues"
|
|
14
|
-
},
|
|
15
|
-
"homepage": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue#readme",
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc",
|
|
19
|
-
"format": "prettier --write --parser typescript ./src",
|
|
20
|
-
"lint": "eslint . --fix",
|
|
21
|
-
"prepare": "yarn run build",
|
|
22
|
-
"prepublishOnly": "yarn run lint",
|
|
23
|
-
"version": "git add .",
|
|
24
|
-
"postversion": "git push && git push --tags"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@rushstack/eslint-patch": "^1.2.0",
|
|
28
|
-
"@types/lodash": "^4.14.191",
|
|
29
|
-
"@types/node": "^18.15.1",
|
|
30
|
-
"@types/uuid": "^9.0.1",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
32
|
-
"@typescript-eslint/parser": "^5.54.1",
|
|
33
|
-
"eslint": "^8.36.0",
|
|
34
|
-
"eslint-config-prettier": "^8.7.0",
|
|
35
|
-
"eslint-plugin-import": "^2.27.5",
|
|
36
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
37
|
-
"prettier": "^2.7.1",
|
|
38
|
-
"typescript": "^4.7.4"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"axios": "^1.3.4",
|
|
42
|
-
"emittery": "^1.0.1",
|
|
43
|
-
"keycloak-js": "^20.0.3",
|
|
44
|
-
"lodash": "^4.17.21",
|
|
45
|
-
"uuid": "^9.0.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@samhammer/authentication-vue",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"description": "Keycloak authentication for VueJS projects",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"typings": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*"
|
|
9
|
+
],
|
|
10
|
+
"repository": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue",
|
|
11
|
+
"author": "SamhammerAG (https://www.samhammer.de/)",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/SamhammerAG/Samhammer.Authentication.Vue#readme",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"format": "prettier --write --parser typescript ./src",
|
|
20
|
+
"lint": "eslint . --fix",
|
|
21
|
+
"prepare": "yarn run build",
|
|
22
|
+
"prepublishOnly": "yarn run lint",
|
|
23
|
+
"version": "git add .",
|
|
24
|
+
"postversion": "git push && git push --tags"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@rushstack/eslint-patch": "^1.2.0",
|
|
28
|
+
"@types/lodash": "^4.14.191",
|
|
29
|
+
"@types/node": "^18.15.1",
|
|
30
|
+
"@types/uuid": "^9.0.1",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
32
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
33
|
+
"eslint": "^8.36.0",
|
|
34
|
+
"eslint-config-prettier": "^8.7.0",
|
|
35
|
+
"eslint-plugin-import": "^2.27.5",
|
|
36
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
37
|
+
"prettier": "^2.7.1",
|
|
38
|
+
"typescript": "^4.7.4"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"axios": "^1.3.4",
|
|
42
|
+
"emittery": "^1.0.1",
|
|
43
|
+
"keycloak-js": "^20.0.3",
|
|
44
|
+
"lodash": "^4.17.21",
|
|
45
|
+
"uuid": "^9.0.0"
|
|
46
|
+
}
|
|
47
|
+
}
|