keycloak-angular 9.3.2 → 10.0.2

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.
Files changed (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -53,12 +53,13 @@ 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 - 17 | Bugs / New Features |
56
+ | 13.x | 10.x.x | 18 | Bugs / New Features |
57
+ | 13.x | 9.x.x | 10 - 17 | Bugs |
57
58
  | 11.x - 12.x | 8.4.0 | 10 - 15 | None |
58
59
 
59
60
  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).
60
61
 
61
- _Note_: In keycloak-angular **v.9**, it is needed to add `allowSyntheticDefaultImports: true` in the tsconfig.json file in your project. There is an [issue in the keycloak project](https://github.com/keycloak/keycloak/issues/9045) to update the typescript definitions file and solve the problem.
62
+ _Note_: Only for keycloak-angular **v.9**, there is the need to add `allowSyntheticDefaultImports: true` in the tsconfig.json file in your project. This is related to this [issue in the keycloak project](https://github.com/keycloak/keycloak/issues/9045). From keycloak-angular v.10 on, there is no need to set this configuration.
62
63
 
63
64
  #### Choosing the right keycloak-js version
64
65
 
@@ -83,7 +84,7 @@ function initializeKeycloak(keycloak: KeycloakService) {
83
84
  return () =>
84
85
  keycloak.init({
85
86
  config: {
86
- url: 'http://localhost:8080/auth',
87
+ url: 'http://localhost:8080',
87
88
  realm: 'your-realm',
88
89
  clientId: 'your-client-id'
89
90
  },
@@ -173,7 +174,7 @@ export class AuthGuard extends KeycloakAuthGuard {
173
174
  // Get the roles required from the route.
174
175
  const requiredRoles = route.data.roles;
175
176
 
176
- // Allow the user to to proceed if no additional roles are required to access the route.
177
+ // Allow the user to proceed if no additional roles are required to access the route.
177
178
  if (!(requiredRoles instanceof Array) || requiredRoles.length === 0) {
178
179
  return true;
179
180
  }
@@ -221,7 +222,7 @@ In the example below, any http requests with the header `token-update: false` wi
221
222
  ```ts
222
223
  await keycloak.init({
223
224
  config: {
224
- url: 'http://localhost:8080/auth',
225
+ url: 'http://localhost:8080',
225
226
  realm: 'your-realm',
226
227
  clientId: 'your-client-id'
227
228
  },
@@ -258,8 +259,8 @@ keycloakService.keycloakEvents$.subscribe({
258
259
  <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
259
260
 
260
261
  <!-- prettier-ignore -->
261
- |[<img src="https://avatars3.githubusercontent.com/u/676270?v=4" width="89px;"/><br /><sub><b>Mauricio Gemelli Vigolo</b></sub>](https://github.com/mauriciovigolo)<br />|[<img src="https://avatars1.githubusercontent.com/u/695720?s=400&v=4" width="89px;"/><br /><sub><b>Jon Koops</b></sub>](https://github.com/https://github.com/jonkoops)<br />|[<img src="https://avatars0.githubusercontent.com/u/2146903?v=4" width="89px;"/><br /><sub><b>Frederik Prijck</b></sub>](https://github.com/frederikprijck)<br /> | [<img src="https://avatars2.githubusercontent.com/u/161351?s=460&v=4" width="89px;"/><br /><sub><b>Jonathan Share</b></sub>](https://github.com/sharebear)<br /> | [<img src="https://avatars1.githubusercontent.com/u/980278?v=4" width="89px;"/><br /><sub><b>jmparra</b></sub>](https://github.com/jmparra)<br /> | [<img src="https://avatars2.githubusercontent.com/u/6547340?v=4" width="89px;"/><br /><sub><b>Marcel Német</b></sub>](https://github.com/marcelnem)<br /> | [<img src="https://avatars3.githubusercontent.com/u/14264577?v=4" width="89px;"/><br /><sub><b>Raphael Alex Silva Abreu</b></sub>](https://github.com/aelkz)<br /> |
262
- | :---: | :---: | :---: | :---: | :---: | :---: |:---: |
262
+ |[<img src="https://avatars3.githubusercontent.com/u/676270?v=4" width="89px;"/><br /><sub><b>Mauricio Vigolo</b></sub>](https://github.com/mauriciovigolo)<br />|[<img src="https://avatars1.githubusercontent.com/u/695720?s=400&v=4" width="89px;"/><br /><sub><b>Jon Koops</b></sub>](https://github.com/https://github.com/jonkoops)<br />|
263
+ | :---: | :---: |
263
264
 
264
265
  <!-- ALL-CONTRIBUTORS-LIST:END -->
265
266
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloak-angular",
3
- "version": "9.3.2",
3
+ "version": "10.0.2",
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 || ^17"
32
+ "keycloak-js": "^18"
33
33
  },
34
34
  "dependencies": {
35
35
  "tslib": "^2.3.0"