Commit graph

359 commits

Author SHA1 Message Date
Erik Jan de Wit
bd28a912dd
optimized realm loading and added current realm (#1891) 2022-01-20 11:20:35 +01:00
Jon Koops
884102d83b
Make 'User Profile' tabs routable (#1862) 2022-01-19 10:41:52 +01:00
Jenny
105d0dffb0
Adds selectable attribute functionality (#1840)
* index on authEvaluateTab: f0a2494d Add nexus profile for releases (#1704)

auth evaluate wip

wip auth evaluate tab

add identity information and permissions

help text and wip evaluate

* wip contextual attributes

* wip contextual attributes

* add conditional dropdown for auth method

* key and value can be saved now

* wip selectable save

* selectable attribute input save success

* changes to AttributeInput only

* revert files to versions from master

* add back defaultContextAttributes

* set id

* delete autheval file

* remove isKeySelectable

* lift props

* localize names and separate dropdown from the other attribute inputs

* remove log stmt

* add placeholder, return implicitly

* fix select/save

* reorder hook and conditional

* translate, fields/save working
2022-01-17 14:26:42 -05:00
Jon Koops
919d07c90b
Add RoutableTabs component for routed tabs (#1852) 2022-01-14 11:05:50 +01:00
Erik Jan de Wit
2d5c66b108
removed look ahead / back regex for safari (#1829)
fixes: #1806
2022-01-07 08:28:19 +01:00
mfrances17
aa99ac7e2d
Add help url links (#1747)
* initial work

* add help urls for all main landing pages
2021-12-21 10:32:53 -05:00
Marco
2276311334
Credentials Reset Flow (#1699)
* Add credential reset modal

* Add i18n labels

* Refactor to align with marvelapp mockup
TODO: tests

* Add e2e tests

* Implement code review change requests
Add menuAppendTo to CredentialResetActionMultiSelect -> Select component
Add optional menuAppendTo prop to TimeSelectorComponent
Refactor CredentialsPage constructor
2021-12-21 07:22:44 +01:00
Erik Jan de Wit
67d2c8617f
Changed the idP mapper form to use the new Dynamic forms (#1641) 2021-12-14 23:46:19 +01:00
Erik Jan de Wit
e8f335f199
changed all the help items (#1683) 2021-12-14 15:56:36 +01:00
Jenny
efa06cb329
fix client scopes mapper labels (#1678) 2021-12-10 13:27:04 +01:00
Erik Jan de Wit
242c1d8445
better form convert (#1640)
* better form convert

* fixed other forms

* changed to use npm package

* better form convert

* merge fix

* fixed mapper test
2021-12-08 16:08:42 +01:00
Jenny
1f568d8888
Fix modal title in User Fed -> hardcoded-ldap-mapper (#1643)
* fix hardcoded ldap modal

* groups section from master

* revert groups onclick
2021-12-08 09:16:45 -05:00
alevid99
51d8038a5c
Added role mapping tab to group detail page (#1638)
* feat(group): added role mapping tab

feat(groups): fixed members tests

* Add correct role mapping label

* Use composite group mappings

Co-authored-by: Marco Cesi <sq@iamsquare.it>
2021-12-07 13:56:25 +01:00
Erik Jan de Wit
bc8ffed934
added import dialog for authorization resources (#1604) 2021-12-01 12:05:24 +01:00
Erik Jan de Wit
0bbd4ddad1
Initial version of the create and edit resouce screen (#1573)
* Initial version of the create and edit resouce screen

* refactored and fixed the attributes form

introduced a new component that can be used more easily

* Update src/components/json-file-upload/FileUploadForm.tsx

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

* Update src/components/attribute-form/attribute-convert.ts

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

* Update src/clients/authorization/ResourceDetails.tsx

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

* Update src/clients/authorization/ResourceDetails.tsx

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

* Update src/clients/authorization/ResourceDetails.tsx

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

* PR review

* fixed tests

* PR review comments

* resourceId is optional

* Update src/components/attribute-form/attribute-convert.ts

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

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-12-01 08:58:25 +01:00
Erik Jan de Wit
f4f52ad2c8
Added my PR review comments after the merge (#1605) 2021-11-29 13:51:31 +01:00
Jenny
d08b55ae9a
Realm settings(client policies): add/edit client-updater-source-groups condition (#1577) 2021-11-24 17:19:28 +01:00
Jenny
999b502d44
Realm settings(Client policies): Update client-scopes condition to match new design (#1575) 2021-11-23 15:59:04 +01:00
Jenny
0b73d51412
Realm settings(Client policies -> conditions): Update client-roles condition to match new design (#1532)
* wip client roles select field

WIP multivalued roles component

wip client roles select: multivalued rows component

wip client roles select

role multi select is working :)

update client roles select to use multivalued select as per new design

delete comments

remove unused css

update cypress tests

revert to original

remove duplicates

add isCreateable

* PR feedback

* small refactor

* change to use orderBy

* use localeCompare

* fix tests

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-11-22 07:41:43 -05:00
Jenny
4959c3f0ca
Update to PF 4.159.1 (#1560)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-11-18 15:11:41 +01: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
Erik Jan de Wit
ec5acf65ae
don't call onchange when contents is empty (#1557) 2021-11-16 11:52:33 +01:00
Jon Koops
d7362a97a0
Split realm context into two (#1523) 2021-11-11 17:04:04 +01:00
agagancarczyk
4e05f0c57e
Executor details (#1499) 2021-11-10 15:26:43 +01:00
Jenny
0565f6a482
add create client policy form; WIP (#1488)
add client policy tests

checkout realm settings test from master

RealmSettingsPage.ts master

remove comment and add missing translation

fix tests

PR feedback from Jon and Erik

rebase

editClientPolicy

edit client policy

add client policy conditions form

fix bug in create form

remove comment

update help text

fixes

breadcrumbs

add support for adding multiple conditions, deleting conditions, and list conditions in data table

clean up names

add delete functionality to conditions form

PR feedback from Jon

useMemo for conditions

remove comments and logs

remove unused hook

PR feedback from Jon

messages

rename message

rebase

remove duplicate value

fixed multi select bug

conditionConfigs wip

add all config fields, labels, and help text for condition types

wip config POST

config post is working

fix bug in multiline string POST

fix any client empty config

client scopes config wip

fix config settings for client-updater-context

fix client access type config

clean up configuration conditionals

add aria label to resolve critical axe issue

Apply suggestions from code review

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

address PR feedback from Jon

fix undef error

wip edit condition configs

fix import

wip edit configs

wip edit condition configs

populate all multiline input fields with data from server

update functionality

condition configs done

update route and delete comment

fix client updater context

add tests

add test for editing condition

remove  comment

fix test

unskip tests

need optional chain for cypress test

fix breadcrumb
2021-11-09 13:27:25 -05:00
Erik Jan de Wit
890d322312
Refactored dynamic components a bit more (#1462)
* moved to component folder

* replaced iteration with component

* fixed merge error

* renamed file

* tried to improve the test

* made field label lower case
2021-11-08 10:46:03 +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
Erik Jan de Wit
48a006e1fa
put shared logic into common component + fixes (#1415)
* put shared logic into common component + fixes

fixes: #1398

* removed conflicted name

* code review

* pr review comments

* update admin-client for better retrun types import
* use image file instead of encoded data:uri

* fix package lock

* is typechecked to be string
2021-11-01 08:49:23 +01:00
alevid99
9e116daf62
Added possibility to manage array attributes (#1384)
* Added possibility to manage array attributes

* feat(attributes): added multivalue tests
2021-10-28 14:49:19 -04:00
alevid99
3fa13259e0
Added attributes tab to users (#1383) 2021-10-25 16:38:54 +02:00
Jon Koops
01e6bfeef5
Mask private key when exporting SAML client (#1326) 2021-10-14 09:52:36 +02:00
Jon Koops
bd7ca9a7fa
Add utility function to pretty print JSON (#1310) 2021-10-08 20:21:09 +02:00
Jon Koops
10d7c35b81
Hide capability config for bearer-only clients (#1279) 2021-10-06 13:05:27 +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
Erik Jan de Wit
145cf56a2b
fixes some issue on the events tab (#1150) 2021-09-27 10:52:02 +02:00
Erik Jan de Wit
a74921b914
fix select paging issue (#1237)
fixes: #1213
2021-09-27 10:38:07 +02:00
Jenny
83d5624bf4
Identity Providers(Mappers): Edit mappers (#1140)
* rebase

dont fetch rolesbyID if mapperId

save attributes

fix cypress test

cypress test updates

fix cancel route

route fix with Erik

Apply suggestions from Jon's code review

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

pr feedback from jon

remove unused import

* usefindbytestid

* PR feedback from Jon

* fix tests

* fix save bug and feedback from Jon

* remove unnecessary type

* fix cypress test
2021-09-22 16:27:30 -04:00
Erik Jan de Wit
809247a686
changed to use code editor (#1161)
* changed to use code editor

* Update src/components/json-file-upload/JsonFileUpload.tsx

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

* fixed tests

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-22 10:54:53 +02:00
Jon Koops
62ea6c5dca
Check types using ts-jest and upgrade Jest (#1178) 2021-09-17 09:33:15 +02:00
Erik Jan de Wit
cb94c537db
don't show toolbar when not searching (#1152)
* don't show toolbar when not searching

* fixed the tests

* made switch logic more readable

* fixed test
2021-09-15 11:45:56 +02:00
Erik Jan de Wit
b8990cbf63
Make filtering of client scopes same for clients and client scope section (#1064)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-14 17:48:48 +02:00
Jenny
a617c4ab12
Identity Providers(Mappers): Implement "Add Mapper" Screen/Functionality for OIDC and SAML IdPs (#1118) 2021-09-13 11:17:00 +02:00
Jon Koops
b5e5677cb5
Keep realm value from RealmContext in sync with the URL (#1130) 2021-09-07 13:19:50 +02:00
Erik Jan de Wit
f87463d036
add action menu to current user (#1094)
* add action menu to delete current user

* added impersonate user to action manu

* fixed spelling
2021-09-03 09:54:23 -04:00
Stan Silvert
d35582521d
Time selector was generating duplicate id's (#1117) 2021-09-03 08:55:51 +02:00
Jon Koops
e062603ff2
Remove useless React fragments (#1062) 2021-08-26 14:15:28 +02:00
Jon Koops
9850505001
Use pre-release version of Admin Client (#1063) 2021-08-26 10:39:35 +02:00
Erik Jan de Wit
4d789f84e3
fixed logic when to show empty search result (#1053)
fixes: #1040
2021-08-24 12:38:29 +02:00
Jon Koops
18e0a930be
Prefer Array#includes() over Array#indexOf() (#1013) 2021-08-18 11:29:42 +02:00
Erik Jan de Wit
2581da0765
change to TextInput when editing (#991)
* change to TextInput when editing
as keycloak doesn't store the password as clear text

fixes: #971

* now part of the password field
2021-08-17 08:58:07 -04:00
Jenny
f93d478f44
Realm settings(localization): add locale dropdown to table (#936)
* add localization dropdown

uncomment isDisabled

clean up names

comment out localization tab again

disable actions menu if form not submitted

uncomment tab

use currentRealm for tableLoader

fix axe issues labeled as serious

PR feedback from Erik

use isSearching instead of keepToolbar

* fix node build

* use object entries

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-17 08:50:31 -04:00
Jenny
412e4c1f6b
Sessions(actions dropdown): Adds actions dropdown - "revocation" and "log out all sessions" (#896)
* rebase and resolve conflicts/comments

* remove badgeid
2021-08-16 15:25:36 -04:00
Erik Jan de Wit
b5e2fb802c
fixed breadcrumb for search and seach box distance (#998)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-16 14:35:39 +02:00
Erik Jan de Wit
321b259a4b
fixed focus and min value (#999)
fixes: #405
2021-08-16 11:40:14 +02:00
Jon Koops
317acd8239
Prefer optional chaining over validating references (#992) 2021-08-12 13:15:47 +02:00
Jon Koops
45bd2fd385
Use FunctionComponent type for components needing 'children' prop (#977) 2021-08-10 13:18:48 +02:00
Erik Jan de Wit
9aa1cd0286
disable save when there are no changes (#975)
fixes: #679
2021-08-10 12:15:23 +02:00
Erik Jan de Wit
cc31f0853c
Initial version of the authentication section (#887)
* initial version of create authentication screen

* initial version of authentication details

* added flow details labels to view header

* not in use fix

* create execution tree

* fixed collapsable row layout

* fix drag and drop expand

* fix merge error

* move to modal

* diff and post drag and drop changes

* fixed locating the parent row

* move "live text" for d&d to common messages

* firefox fix

* initial version of the diagram

* use dagre to layout automatically

* moved to sperate file

* conditional node

* now renders subflows sequential

* changed to render sequential or parallel flows

* fixed render of sub flows

* added button edge, drawer and selectable nodes

* add requirement dropdown

* also do move so we can merge

* also do move so we can merge

* fixed merge

* added refresh

* change requirement

* fixed merge error

* now uses the new routes

* Split out routes into multiple files

* Update src/authentication/AuthenticationSection.tsx

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

* Update src/authentication/FlowDetails.tsx

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

* Update src/authentication/FlowDetails.tsx

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

* Update src/authentication/FlowDetails.tsx

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

* Update src/authentication/FlowDetails.tsx

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

* fixed labels

* merge fix

* make execution of these parrallel

* added some tests

* Update src/authentication/components/FlowRequirementDropdown.tsx

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

* more review changes

* fixed merge error

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-09 10:47:34 +02:00
Jon Koops
cc664ce577
Place dropdown over DownloadDialog (#943) 2021-08-05 15:01:48 +02:00
Jon Koops
25376c75fd
Process UX feedback for DownloadDialog (#942) 2021-08-05 12:42:29 +02:00
Jon Koops
be0506653d
Hide details when adaptor config is download-only (#938) 2021-08-04 14:24:55 +02:00
Erik Jan de Wit
bc1e83e63a
Introduce a standard way to create handle errors (#918) 2021-07-28 14:01:42 +02:00
Jon Koops
12d2471c3b
Enable 'no-empty-function' ESlint rule (#917) 2021-07-27 22:56:16 +02:00
Jon Koops
95289ac3e5
Disable automatically generated breadcrumbs (#894) 2021-07-22 16:48:00 +02:00
Jon Koops
5286eb6d5a
Use new routing conventions for realm routes (#890) 2021-07-22 09:13:35 +02:00
Jon Koops
41a0923bad
Introduce 'useRequiredContext' utility function (#882) 2021-07-21 11:30:18 +02:00
Jon Koops
d8d230557e
Defer breadcrumbs translations on route definitions (#883) 2021-07-21 11:20:32 +02:00
Jon Koops
1d79a5d9a8
Drop Storybook from the project (#881) 2021-07-20 16:40:45 +02:00
Jenny
6d8db5d533
Realm settings: Sessions tab (#807) 2021-07-15 16:25:22 +02:00
Stan Silvert
d606dc6bee
Run as theme (#840)
* Build for Keycloak theme

* Update based on lastest index.html changes.

* Fix realm dropdown when home realm is not master.

* Fix readme.

* Fix linting errors.

* Try to fix tests.

* Address Jon's comments.
2021-07-14 11:35:49 -04:00
Jon Koops
fc85d1a005 Integrate Prettier into ESLint and fix linting issues
Other changes:
- Ensure that .tsx files are included in the linting process
2021-07-13 15:20:36 +02:00
Agnieszka Gancarczyk
74deaad0b9 added acessibility fixes 2021-07-12 15:09:14 +01:00
Agnieszka Gancarczyk
032fa57383 added accessibility fixes 2021-07-09 17:15:21 +01:00
agagancarczyk
3c16cbe5e6
Merge pull request #815 from keycloak/revert-813-ay11
Revert "Ay11"
2021-07-09 16:11:50 +01:00
Erik Jan de Wit
dfda67146c
Added Security Defenses tab in the realm settings (#738)
* initial version of the Security defenses tab

* disable when not dirty

* added test

* removed unsessary fetches

* fixed format

* fixed tests

* fixed title

* Update src/realm-settings/security-defences/BruteForceDetection.tsx

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

* Update src/realm-settings/messages.json

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

* fixed test

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2021-07-09 10:23:49 -04:00
agagancarczyk
4133a432de
Revert "Ay11" 2021-07-09 14:42:45 +01:00
Agnieszka Gancarczyk
812d626541 Added accessability fixes 2021-07-08 18:14:04 +01:00
Jon Koops
ad7b77503a Convert ConfirmDialog test to use React Testing Library 2021-07-07 14:49:49 +02:00
Jon Koops
ffe9f74294 Convert FormAccess test to use React Testing Library 2021-07-07 14:49:39 +02:00
Jon Koops
dd15b13a4c Convert DataLoader test to use React Testing Library 2021-07-07 14:48:58 +02:00
Jon Koops
18e96fda16 Drop snapshot tests in Jest 2021-07-07 10:57:35 +02:00
Erik Jan de Wit
707d11fe93
Changed the group picker to reflect the updated design (#743) 2021-07-06 11:31:14 +02:00
Jon Koops
64d5a498a6 Update Prettier to latest version and fix formatting 2021-07-05 15:26:07 +02:00
mfrances17
5c3c1bbb46
Update to Patternfly 4.115.2 (latest release) (#737)
* update to latest PF

* fix tests
2021-07-02 07:45:08 -04:00
Erik Jan de Wit
1613331bba
Fixed these 2 issues: (#741)
* fix order of alerts where the newest is on the top

* removed double loading indicator

* fixes showing old alerts again
2021-07-01 08:48:03 +02:00
Erik Jan de Wit
f94873f99a fixed types 2021-06-29 08:40:41 +02:00
Erik Jan de Wit
32492152aa fixed issue
fixing: #706
2021-06-23 13:16:10 +02:00
mfrances17
125fd1fe3d
Merge pull request #696 from jenny-s51/testEmailConnection
Test email connection
2021-06-22 16:17:31 -04:00
mfrances17
d90b1842ce
Merge pull request #708 from edewit/service-roles
fixing issue
2021-06-22 09:17:11 -04:00
Erik Jan de Wit
fb8419f3e1 added help item on enable switch 2021-06-22 10:32:04 +02:00
Erik Jan de Wit
4e45bc2a35 add unassign kebab on row 2021-06-22 07:52:13 +02:00
jenny-s51
fd1466c0d6 test email working, modal wip
email connection done

remove comment

fix cypress test

revert test file

fdisable email prompting when user email entered

prettier

update cypress tests

fix lint

try fix cypress test

try longer wait
2021-06-21 14:47:34 -04:00
Erik Jan de Wit
a964abed8d
fixing issue (#709)
* fixing issue

fixing: #680

* added kebab on row

* added more clear group seperation
2021-06-21 13:55:51 -04:00
Jenny
5e6c6b0775
Default roles: UI Changes from KEYCLOAK-14846 (#693)
* defaultRoles wip

default role changes done

clean up log stmts

update snapshot

fix masthead test

* fix cypress test

* fix tabs
2021-06-18 16:04:20 -04:00
Erik Jan de Wit
2c9b77c425
Fixing UXD review for user (#648)
* Introduced new GroupPicker.
Can be used for move group or join group

* Moved help texts to help.json

* don't set state when there was no request

* add pagination

* remove "Groups" link on root level

* use path in chip instread of name

* fixes filtering to show search not found
and removes `+1` logic from pager

* fix breadcrumb and layout

* fixed all the tests
2021-06-16 07:35:03 -04:00
Erik Jan de Wit
3b231a2a91 fixed size 2021-06-15 14:39:03 +02:00
Erik Jan de Wit
2765af69c5 more style fixes 2021-06-15 13:12:32 +02:00
Erik Jan de Wit
e68d4ff5c8 inherited roles disabled instead of non selectable 2021-06-15 08:14:38 +02:00
mfrances
7edc76a079 role mapping working 2021-06-10 10:03:46 -04:00
mfrances
b9c38e811e fix lint issues 2021-06-10 10:03:46 -04:00