Skip to content

Commit

Permalink
upgrade to keycloak-js v26 (#9)
Browse files Browse the repository at this point in the history
* fix origin check on server.mjs

* add real ip on nginx

* add logs to server.mjs for origin control

* real IP cloudflare

* cloudflare update

* improve proxy detection

* missing deactivation function

* remove https header for deactivate

* restore license info (try)

* revert last change

* fix empty license when no machines

* change renew button condition

* add validation code with button

* switch logic for renew button

* remove recursive check on proxy

* Complete revamp of Portal to display all keys allocated to user

* missing css property

* fix css typo

* Bump express from 4.19.2 to 4.20.0 in /portal (#5)

* Remove proxy recursive check

* List Keys on Portal connection (#4)

* fix origin check on server.mjs

* add real ip on nginx

* add logs to server.mjs for origin control

* real IP cloudflare

* cloudflare update

* improve proxy detection

* missing deactivation function

* remove https header for deactivate

* restore license info (try)

* revert last change

* fix empty license when no machines

* change renew button condition

* add validation code with button

* switch logic for renew button

* remove recursive check on proxy

* Complete revamp of Portal to display all keys allocated to user

* missing css property

* fix css typo

* Bump express from 4.19.2 to 4.20.0 in /portal

Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](expressjs/express@4.19.2...4.20.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: MaxWaldorf <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update depedencies

* upgrade packages versions

* revert keycloak-js version

* fix keycloack-js changes in v26

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
MaxWaldorf and dependabot[bot] authored Oct 24, 2024
1 parent 793d1f2 commit c2f759b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"keycloak-js": "^25.0.6",
"keycloak-js": "^26.0.2",
"parcel": "^2.12.0",
"process": "^0.11.10",
"react": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion portal/src/auth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Keycloak from 'keycloak-js';
import Keycloak from '../node_modules/keycloak-js/lib/keycloak.js';

let initOptions = {
url: process.env.KEYCLOAK_URL,
Expand Down
22 changes: 7 additions & 15 deletions portal/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1239,9 +1239,9 @@ [email protected]:
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==

electron-to-chromium@^1.5.41:
version "1.5.42"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.42.tgz#4b3ca7648fb0865daec92298f9ba79e278a476a3"
integrity sha512-gIfKavKDw1mhvic9nbzA5lZw8QSHpdMwLwXc0cWidQz9B15pDoDdDH4boIatuFfeoCatb3a/NGL6CYRVFxGZ9g==
version "1.5.45"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.45.tgz#fa592ce6a88b44d23acbc7453a2feab98996e6c9"
integrity sha512-vOzZS6uZwhhbkZbcRyiy99Wg+pYFV5hk+5YaECvx0+Z31NR3Tt5zS6dze2OepT6PCTzVzT0dIJItti+uAW5zmw==

emoji-regex@^8.0.0:
version "8.0.0"
Expand Down Expand Up @@ -1599,18 +1599,10 @@ json5@^2.2.0, json5@^2.2.1:
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==

jwt-decode@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b"
integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==

keycloak-js@^25.0.6:
version "25.0.6"
resolved "https://registry.yarnpkg.com/keycloak-js/-/keycloak-js-25.0.6.tgz#ea2e74d907f251c93080c6e2245d9d858bd4b329"
integrity sha512-Km+dc+XfNvY6a4az5jcxTK0zPk52ns9mAxLrHj7lF3V+riVYvQujfHmhayltJDjEpSOJ4C8a57LFNNKnNnRP2g==
dependencies:
js-sha256 "^0.11.0"
jwt-decode "^4.0.0"
keycloak-js@^26.0.2:
version "26.0.2"
resolved "https://registry.yarnpkg.com/keycloak-js/-/keycloak-js-26.0.2.tgz#b51eabbff8b1fdf4029e792f0a04a040e90251c1"
integrity sha512-c77fNwTBDaNtlewrG/CREwZYGNe/QvL72o3/8/EIsvjphPVrXobvAcQG6DxBy82Ah9e3ASUPxAyyA+jPVEgOsg==

[email protected]:
version "1.27.0"
Expand Down

0 comments on commit c2f759b

Please sign in to comment.