keycloak-angular 9.2.0 → 9.3.0
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/README.md +12 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Note that `keycloak-js` is a peer dependency of Keycloak Angular. This change al
|
|
|
53
53
|
|
|
54
54
|
| Angular | keycloak-angular | keycloak-js | Support |
|
|
55
55
|
| :---------: | :--------------: | :---------: | :-----------------: |
|
|
56
|
-
| 13.x | 9.x.x | 10 -
|
|
56
|
+
| 13.x | 9.x.x | 10 - 17 | Bugs / New Features |
|
|
57
57
|
| 11.x - 12.x | 8.4.0 | 10 - 15 | None |
|
|
58
58
|
|
|
59
59
|
Only the latest version of Angular in the table above is actively supported. This is due to the fact that compilation of Angular libraries is [incompatible between major versions](https://angular.io/guide/creating-libraries#ensuring-library-version-compatibility).
|
|
@@ -193,10 +193,15 @@ There is also the possibility to exclude requests that should not have the autho
|
|
|
193
193
|
```ts
|
|
194
194
|
await keycloak.init({
|
|
195
195
|
config: {
|
|
196
|
-
url: 'http://localhost:8080
|
|
196
|
+
url: 'http://localhost:8080',
|
|
197
197
|
realm: 'your-realm',
|
|
198
198
|
clientId: 'your-client-id'
|
|
199
199
|
},
|
|
200
|
+
initOptions: {
|
|
201
|
+
onLoad: 'check-sso',
|
|
202
|
+
silentCheckSsoRedirectUri:
|
|
203
|
+
window.location.origin + '/assets/silent-check-sso.html'
|
|
204
|
+
},
|
|
200
205
|
shouldAddToken: (request) => {
|
|
201
206
|
const { method, url } = request;
|
|
202
207
|
|
|
@@ -220,6 +225,11 @@ await keycloak.init({
|
|
|
220
225
|
realm: 'your-realm',
|
|
221
226
|
clientId: 'your-client-id'
|
|
222
227
|
},
|
|
228
|
+
initOptions: {
|
|
229
|
+
onLoad: 'check-sso',
|
|
230
|
+
silentCheckSsoRedirectUri:
|
|
231
|
+
window.location.origin + '/assets/silent-check-sso.html'
|
|
232
|
+
},
|
|
223
233
|
bearerExcludedUrls: ['/assets', '/clients/public'],
|
|
224
234
|
shouldUpdateToken: (request) => {
|
|
225
235
|
return !request.headers.get('token-update') === 'false';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keycloak-angular",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Easy Keycloak setup for Angular applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@angular/common": "^13",
|
|
30
30
|
"@angular/core": "^13",
|
|
31
31
|
"@angular/router": "^13",
|
|
32
|
-
"keycloak-js": "^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16"
|
|
32
|
+
"keycloak-js": "^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16 || ^17"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.0"
|