Commit graph

57 commits

Author SHA1 Message Date
Jon Koops
e363fb68b0
Add display names to contexts (#3032) 2022-08-03 15:15:04 +02:00
Jon Koops
a6fd2cabfa
Use new JSX transformation for React (#3033) 2022-08-03 14:12:07 +02:00
Jon Koops
aeda5f3e4c
Use new admin client with seperated Keycloak JS (#2964) 2022-07-14 15:02:28 +02:00
Erik Jan de Wit
2bf30c9203
Throw error when server context can't be loaded (#2635) 2022-05-18 10:51:29 +02:00
Erik Jan de Wit
bb853874d8
Issue 2618 (#2623) 2022-05-12 10:09:15 +02:00
Erik Jan de Wit
ede8db53a0
Added default role tab to realm settings (#1497)
* added user registration tab to realm settings

* added keycloak spinner

* fixed routing from all role tabs

* Update src/realm-settings/RealmSettingsTabs.tsx

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

* changed tab name to "associated-roles"

* removed useless key attribute

* removed unnessary variable

* fixed pagination

* rebased

* fixed default role type

* fixed create realm role

* fixed helpItem forID

* fixed test

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2021-11-16 12:10:10 +01:00
Jon Koops
d7362a97a0
Split realm context into two (#1523) 2021-11-11 17:04:04 +01:00
Erik Jan de Wit
9c48bb4d90
refactor + use new composite role api (#1399)
* refactor + use new composite role api

* fixed types

* Update src/realm-roles/AssociatedRolesModal.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* Update src/realm-roles/AssociatedRolesModal.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* Update src/realm-roles/RealmRoleTabs.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* code review comments

* removed duplicate type

* route

* Update src/realm-roles/AssociatedRolesModal.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* Update src/realm-roles/routes/RealmRole.ts

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* Update src/realm-roles/AssociatedRolesModal.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* fix unused import

* fixed test

* fixed merge errors

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-11-01 13:29:52 +01:00
Jon Koops
6cf586f447
Lazy load user tabs component to prevent circular dependencies (#1432) 2021-10-27 16:15:30 +02:00
Erik Jan de Wit
bd8fc558d5
now checks if data could be loaded and throw error (#1265) 2021-09-30 10:58:48 +02:00
Jon Koops
9850505001
Use pre-release version of Admin Client (#1063) 2021-08-26 10:39:35 +02:00
Jon Koops
a6d38096b7
Fix realm intialization (#990) 2021-08-11 13:23:59 +02:00
Jon Koops
45bd2fd385
Use FunctionComponent type for components needing 'children' prop (#977) 2021-08-10 13:18:48 +02:00
Jon Koops
ed33242b34
Allow multiple access for secured routes (#946) 2021-08-09 22:20:49 +02:00
Jon Koops
d8d230557e
Defer breadcrumbs translations on route definitions (#883) 2021-07-21 11:20:32 +02:00
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
Erik Jan de Wit
9fc96d0afc
only query each client session once (#601)
this makes the ids unique so that they only get queried once
2021-05-17 15:35:12 +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
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
3b1d89fedb
partially solves issue #422 (#442)
* partially solves issue #422

* fixed section

* added not before now set / clear alerts
2021-03-17 14:40:19 +01:00
Erik Jan de Wit
e4d83d0fe3
Group details (#425)
* added details for groups

* add includeSubGroups checkbox

* added tests

* fixed reload for group attributes

* fixed spacing on associate roles tab

* fixed group reload after save

* fixed test
2021-03-16 08:37:57 -04: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
ce0ce6d59e
Sub group navigation in groups section (#274)
* list sub group of a group using the id

* introduced group bread crumb component to render

this builds up the groups as you click to subgroups

* added deeplinking

* fixed route config types

* fixed new realm prefix

* added null checks for if group not found

* changed labes to groups
2021-01-12 09:00:44 -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
e6fa093925
small refactor to set realm from path (#282) 2021-01-07 09:56:14 -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
Sarah Rambacher
691708e5f2
Makes jumplinks work (#254)
* jumplinks on main content scroll but buggy

* update PF and move anchor to heading

* add fix for double highlight of jumplink

* mysterious change to unrelated test

* add yarn.lock
2020-12-11 18:34:18 +01: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
Stan Silvert
9fb081e3bf
Fix exact routes (#187) 2020-10-23 07:52:51 +02: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
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
587ae5ce81
changed alerts to have a provider (#137)
fixes: #132
2020-10-06 15:25:05 -04:00
Stan Silvert
bfe6e2c236
Move contexts under a single directory. (#145) 2020-10-06 10:25:38 +02:00
Stan Silvert
f800e000be
Create whoami context (#136)
* Fix conflicts

* Fix formatting

* Get tests to pass

* Fix conflict again
2020-10-02 08:47:32 +02:00
Erik Jan de Wit
2fa8855bf4
initial version of the breadcrumb component (#119)
* initial version of the breadcrumb component

* moved breadcrumbs to Page component
2020-10-01 10:25:29 -04:00
Eugenia
ba6d4877ab
Create realm role page (#114)
* add Realm Roles page

* add section for no realm roles

* update role-model, fixed UI to match designs

* fix paths

* add storybook demo and role actions kebab

* fix build and clean up

* fix formatting

* fix lint

* fix test and update snapshot

* update snapshot after rebase

* PR feedback from Stan

* add back pf addons

* localize NoRealmRoles component

* changes to PR suggested by Sarah

* adds new role form

* fix path

* rename fields

* HTTP post is working

* move create msg

* cleaning up

* address PR feedback from Stan

* added validation and changed to text area

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-09-29 13:54:42 -04:00
Erik Jan de Wit
94b26936d3
fetch and save client (#116)
* fetch and save client

* added multi line for redirect uris

* format

* review
2020-09-25 13:42:32 -04:00
Erik Jan de Wit
e7b108a623
Initial version client scopes (#111)
* initial version client scopes

* remove use of newer replaceAll

* review
2020-09-25 13:11:25 -04:00
Erik Jan de Wit
0f1d93d672
initial version of the client settings page (#89)
* initial version of the client settings page

* fix test

* fixed spelling

* merge errors

* fix merge error

* renamed Step1 and Step2
2020-09-22 08:43:51 -04:00
Eugenia
9fd54eb964
Adds realm roles section to app and storybook (#79)
* add Realm Roles page

* add section for no realm roles

* update role-model, fixed UI to match designs

* fix paths

* add storybook demo and role actions kebab

* fix build and clean up

* fix formatting

* fix lint

* fix test and update snapshot

* fix storybook demo

* update snapshot after rebase

* PR feedback from Stan

* add back pf addons

* Update src/realm-roles/RealmRolesSection.tsx

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

* fix format

* localize NoRealmRoles component

* fix formatting

* changes to PR suggested by Sarah

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2020-09-18 10:04:55 +02:00
Erik Jan de Wit
b87bd2ca76
updated the realm selector (#90)
* updated the realm selector with:

1. realm context that works on other requests
2. added search bar when realm list > 5 realms

* fixed merge
2020-09-17 07:37:30 -04:00
Erik Jan de Wit
1297c9f391
Restructure (#78)
* moved files into new structure

* translation files / namespace per "page"

fixes: #77

* renamed pages to sections

* moved save, delete and others to common bundle
2020-09-10 14:04:03 -04:00
Stan Silvert
8fbcf7582a
Flesh out left navigation (#76)
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-09-09 11:07:17 +02:00
Erik Jan de Wit
f1c9d2e49e
Import client json file (#55)
* import form

* added confirmation dialog

* introduced page component for clients
2020-09-03 15:25:05 -04:00
Erik Jan de Wit
bc041cd44e
added initial version of the "help system" (#26)
* added initial version of the "help system"

fixes: #25

* fix merge error

* fix format
2020-09-02 09:51:42 +02:00
Erik Jan de Wit
513aa2ba91
initial version of the create client create page (#47)
* initial version of the create client role page

* added types and sort function

* updated types

* added steps

* added save function

* fix error message
2020-08-31 14:26:25 -04:00
Eugenia
c480f9cd9d
Add routing (#42)
* WIP routing

* remove webpack plugin

* add routing

* fixes to router

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-08-27 14:09:36 +02:00
Erik Jan de Wit
f11f2bffdf
make pagination work on the client list (#39)
* fix: make pagination work

* fix formatting

* Xmove toolbar to seperate component
2020-08-24 14:11:17 -04:00