Commit graph

28 commits

Author SHA1 Message Date
Erik Jan de Wit
544dcd31db
Introduces new Realm Events tab (#618)
* initial version events tab

* added save

* fix for admin events

* added clear and reset

* add type add dialog

* add remove and add actions

* fix ids

* add cofirm disable button

* added key

* added tests

* fixed messages

* add disabled on save on not dirty

* fixed review comment

* fixed test

* merged tests
2021-06-08 07:29:56 +02:00
Jon Koops
f671cbed84 Extend tsconfig from Snowpack and fix type errors 2021-05-18 16:50:35 +02:00
Erik Jan de Wit
7f21d03bc2 changed asyncStateFetch to be it's own hook
it now cancels pending requests making sure we
don't leak memory + it makes for an nicer looking API
2021-05-18 14:35:09 +02:00
Erik Jan de Wit
78f843cdcc
Fixes with realm list (#576)
* only query realms endpoint once

currently the realm list query is expensive and we only need it once.

* fixed refresh issues

* fixed tests

* fixed imports

* fixed types

* removed strange non code

* reload instead

* added more realm tests
2021-05-03 12:44:47 -04:00
Erik Jan de Wit
eb9092116d
added recently used realms to the top (#502)
* added recently used realms to the top

fixing: #396

* fixed add realm button

* moved setting recent to setRealm
cleanup to where realm list is updated
2021-04-08 15:20:35 -04:00
Stan Silvert
83a8f2baa7
Allow four ways to set location of keycloak server. (#482)
* Allow four ways to set location of keycloak server.

* Make it work for devs on Keycloak 12 and below.
2021-04-06 08:44:37 +02:00
Stan Silvert
398ca19ec1
Allow New Admin Console to run as a WAR on Keycloak server. (#439)
* Allow app to run as a WAR on Keycloak server.

* New client creation json that works for both dev and prod

* fixed tests

* Try Mark's trick to get realm_test to run.

* Make tests use keycloakBefore()

* Fix duplicate import

* fix github actions

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-03-18 08:48:14 -04:00
Erik Jan de Wit
bfa0c6e1ea
Advanced tab (#373)
* initial version of the advanced tab

* added registered nodes

* added fine grain open id connect configuration

* added open id connect compatibility section

* added advanced section

* added backend

* fixed type

* renamed 'advanced' to advancedtab

to prevent strange add of '/index.js' by snowpack

* fixed storybook stories

* change '_' to '-' because '_' is also used

* fix spacing buttons

* stop passing the form

* cypress test for advanced tab

* more tests

* saml section

* changed to use NumberInput

* added authetnication flow override

* fixed merge error

* updated text and added link to settings tab

* fixed test

* added filter on flows and better reset

* added now mandetory error handler

* added sorting

* Revert "changed to use NumberInput"

This reverts commit 7829f2656ae8fc8ed4a4a6b1c4b1961241a09d8e.

* allow users to put empty string as value

* already on detail page after save

* fixed merge error
2021-02-28 15:02:31 -05:00
Erik Jan de Wit
d25ba0af2b
now it can't be called without an error handler (#389) 2021-02-23 09:52:40 +01:00
Erik Jan de Wit
689e01b461
created better error handling (#362)
by using this react-error-boundary package this works also in hooks
2021-02-17 16:12:25 -05:00
Erik Jan de Wit
dba53a01b3
update who am i on realm create as we need the accessTypes (#276)
* whoAmI has the realm access information
so when a new realm is created the whoAmI request has to be done again

* fixed "add realm" button

* remove debug

* refactor

* also force token update

* refresh realm list on realm change
2021-01-12 07:39:37 -05:00
Erik Jan de Wit
feca61d2b0
renamed useFetch to asyncStateFetch (#277)
* renamed `useFetch` to `asyncStateFetch`

otherwise React will mistake it for a react hook and will complain.

* added jsdoc

* fixed the user red stories

* renamed
2021-01-11 13:56:19 -05:00
Erik Jan de Wit
b14027ccb7
Use realm name in urls (#265)
* remove circular dependency on realm context

* added realm as a param of the url

* updated links to include realm

* null !== undefined

* set realm if realm in url

* fixed breadcrumb type

* fixed tests

* addressed pr review comments
2021-01-05 14:49:33 -05:00
Erik Jan de Wit
27d9dadee7
only update state when component is mounted (#266)
* only update state when component is mounted

* removed unused import

* `useFetch` function to update state when mounted
2021-01-05 08:39:27 -05:00
Erik Jan de Wit
b59902e3c8
fix for login on realm other then master (#244) 2020-12-05 08:16:50 -05:00
Erik Jan de Wit
a92f5edcb1
be able to use admin client in nodejs mode (#231) 2020-12-02 08:37:40 -05:00
Erik Jan de Wit
9eabcdbee4
changed how whoAmI uses the admin client (#216)
this avoids a circle dependency on realm
2020-11-12 14:16:41 -05:00
Erik Jan de Wit
dcb18c5488
Use keycloak-admin with axios instead of fetch wrapper (#212)
* changed to use the admin client

* added helper to always set realm

* fixed merge

* no need to polyfill anymore

* updated to use keycloak-admin-client

* updated to release version

* fixed types

* added user federation

* update test

* lint
2020-11-12 07:55:52 -05:00
Erik Jan de Wit
c781d86026
added validated property to fields instead of only on FormGroup (#205)
* added validated to fields to make them nicer

* removed console log
2020-11-09 14:49:32 -05:00
Erik Jan de Wit
2393b40c9b
Added the credentials tab (#196)
* initial version credentials tab

* added signed jwt

* submit token endpoint  signing alg

* added x509

* show tab when public client

* fixed test default confimnation dailog size is small

* pr review comments
2020-11-02 15:15:09 -05:00
Erik Jan de Wit
2543893373
Change the input fields based on access rights (#184)
* poc of possible way to change form dynamically

* fixed detail routs

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* added more form access and logic for Controller

* render switches for boolean types

* better render of `<Controller` wrapped components

* added isDisabled property

* added test

* small refactor

* fixed types

* TextArea doesn't support isDisabled

* when field is disabled, disable button as well

* added jsdoc

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2020-10-28 14:17:15 -04:00
Stan Silvert
45b878e2e6
Allow login to different realms using query param (#188) 2020-10-26 09:00:05 +01:00
Stan Silvert
49284a0f11
Implement basic access control. (#183)
* Implement basic access control.

* Fix formatting
2020-10-21 07:31:41 -04:00
Erik Jan de Wit
90779b6da4
introduced "/" for keycloak.json (#170)
fixes: #165
2020-10-14 08:53:51 -04:00
Erik Jan de Wit
4fa325f45c
initial version of the mapping list (#162)
* initial version of the mapping list

* added story to show mapper list

* fixed format

* changed to use intermediate type
2020-10-12 13:59:15 -04:00
Erik Jan de Wit
f44dad9e25
introduced server info context (#138)
* introduced server info context

* move to context folder

* moved model to context
2020-10-08 07:38:25 -04:00
Erik Jan de Wit
410c553ac0
added function to refresh the dataloader data (#143) 2020-10-06 07:56:06 -04:00
Stan Silvert
bfe6e2c236
Move contexts under a single directory. (#145) 2020-10-06 10:25:38 +02:00