Commit graph

155 commits

Author SHA1 Message Date
Erik Jan de Wit
811131518e
Adds the permissions tab to the Authorization screen under clients (#1835)
* initial work on permissions

* search dropdown permissions

* permissions tab

* added empty state

* added new permssion detail route

* added detail screen

* fixed load

* added decision strategy

* added tests

* fixed class name and identeded the expandable table row
2022-01-12 11:01:54 -05:00
Aboullos
04e86e9b0b
Update Clients tests (#1824) 2022-01-08 10:27:57 +01:00
Jon Koops
ee29a308e8
Add overview for attributes groups to realm settings (#1822) 2022-01-07 13:56:27 +01:00
Erik Jan de Wit
ced1008ad5
now only logs in per test suite for client tests (#1828) 2022-01-07 08:27:58 +01:00
Erik Jan de Wit
f1c7e5ecb3
Create custom user federation providers page (#1745)
* Create custom user federation providers page

fixes: #1722

* added breadcrumb
2022-01-05 12:06:53 -05:00
Erik Jan de Wit
33a1769c39
Finish the policy pages of the authentication section (#1713)
* added WebauthnPolicy tab to Plicies

* change for passwordless

* added tests

* removed use of useToggle
2022-01-05 11:18:49 -05:00
Aboullos
23b11eb879
Update Masthead tests (#1820) 2022-01-05 10:56:38 +01:00
Jon Koops
f0fc136672
Add toggle for user profile to realm settings (#1717) 2022-01-03 16:00:03 +01:00
Jon Koops
acaff98e10
Fix broken Cypress tests (#1802) 2022-01-03 08:11:07 +01:00
Erik Jan de Wit
a88b38dec1
fix tests (#1793) 2021-12-23 15:43:23 +01:00
Jenny
05af84f20f
Edit message bundle values (#1663)
* message bundles are now editable

* update alert text in tests

* delete realm settings test

* remove updatedMessageBundles

* remove unused usefetch

* update lodash import

* fix add locale test

* fix add bundle

* cypress tests

* fix data test id on button

* remove unused isAgtive prop

* fix lint errors

* unskip tests

* refactor KDT to Table with PaginatedToolbar

* unskip tests

* uncomment

* revert KDT

* remove unused onSelect

* Apply suggestions from code review

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

* PR feedback

* PR feedback

* remove useEffect

* fix localization test

* rewrite localization test

* switch test

* unskip

* force

* PR feedback

* package lock

* remove true

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-12-21 07:34:44 +01: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
a473a0b07f
added import and save functions to resource tab (#1676)
* added import and save functions to resource tab

* added test

* fixed the test
2021-12-16 17:31:17 +01:00
Erik Jan de Wit
97641e51cb
changed to use Dynamic components instead (#1662)
* changed to use Dynamic components instead

* fixed merge errors

* fixed PR review issues
2021-12-16 17:24:22 +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
d4c50f6218
added otp policies screen (#1665) 2021-12-13 11:39:41 +01:00
ikhomyn
383673fc1a
Fix. 1359-Can't view all scopes. (#1675) 2021-12-10 13:24:26 +01:00
Stan Silvert
6250ccdaef
Complete partial import functionality. (#1644)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-12-10 11:53:21 +01:00
Jon Koops
d493aa69ca
Show toolbar when filtering events results in an empty list (#1633) 2021-12-07 17:27:48 +01: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
mfrances17
a9d9581062
Cypress test fixes (#1628) 2021-12-06 11:50:29 +01:00
Erik Jan de Wit
de1d677cc1
initial version of the password policies (#1601) 2021-12-01 10:24:46 +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
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
Jon Koops
ff4f58404a
Fix Cypress tests (#1569)
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-11-18 13:55:21 +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
agagancarczyk
2b45a83109
Event listeners (#1533)
* fixed a breadcrum for edit profile

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* edit executor - wip

* executor details - wip

* fixed executors list

* fixed multivaluedList and List components

* fixed displaying default vals for global profile executors, fixed unclicking executors without congigs for global profiles

* added edit executor

* improved edit executor

* added tests for editing executors

* renamed obj

* skipping client policies tests as unstable

* feedback fixes

* fix multiValuedlist defaults - wip

* fixed defaultValues for multiValuedList

* resolved and fixed conflict for test

* added event listeners

* added event listeners

* added success and error mssgs for event listeners saving

* added tests for event listeners

* added tests for event listeners

* improved error mssg

* fixed events tests as LOGIN type no longer available

* uncommented test, but using .skip

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-11-11 12:18:50 +00:00
agagancarczyk
4e05f0c57e
Executor details (#1499) 2021-11-10 15:26:43 +01:00
Jenny
c8d4effb34
Realm settings(Client policies -> policies): Add switch for enabling/disabling policy (#1495)
* add switch for enabling/disabling policy

fix tests

* testing duplicate policy test with added wait

* unskip tests

* ccomment out JSON policies test
2021-11-09 14:36:27 -05: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
mfrances17
d1e45dabde
fix notifications without waits (#1449) 2021-11-02 17:00:42 -04:00
Jenny
8e6f6fb40b
add create client policy form; WIP (#1448)
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

add profiles modal wip

addprofiles wip

profiles wip

help text wip

add help text

remove comments

remove duplicate message

update data test id

PR feedback from Jon 1

Apply suggestions from code review

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

remove fragment

create policy detail attribute type

PR feedback from Jon 2

support editing profile name and description

add edit functionality and restore tests

Delete EditCondition.ts

Apply suggestions from code review

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

format

fix path

use route fn
2021-11-02 13:11:04 -04: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
agagancarczyk
e22b27b471
added tests for editing client profile, creating and deleting executors (#1450)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-11-01 10:58:31 +00: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
Jon Koops
5e63bac12e
Implement partial realm export (#1441)
* Implement partial realm export

* Replace Switches with Checkboxes
2021-10-29 10:50:25 +08: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
Jenny
b80f0a3018
OIDC mapper bug fixes (#1439)
* mapper bug fixes

* change to toUpperCase()

* update data test id for regex switch

* fix cypress test
2021-10-28 10:51:26 -04:00
agagancarczyk
56eb774dd3
Profile view update (#1357)
* added routing for viewing client profile

* added add executors form template

* added add executors form template

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* add executor: wip

* added adding excutors to profiles

* added displaying executors - wip

* added displaying executors - wip

* added navigation to client profile edit on executor creation

* replaced table with list for listing executors added

* added support for editing client profile

* added logic making executors with config links only

* added read only values for edit/view client temporarily

* added helpText for added executors listed in executors list

* added helpText for added executors listed in executors list

* added deleting executor from client profile

* fixed deleting client profile and fixed messages for delete modals

* fixed message for delete clinet profile modal

* combined delete dialogs for client profile and executor

* displaying global executors for global profiles, hiding add executor button

* fixed eslint issue

* fixed executors list

* added back button to global profile view/edit view

* fixed test

* added global batche and hid actions dropdown for global profiles

* fixed switch on/off labels

* fixed hide/display items for global and non-global profiles

* added isDirty

* feedback fixes

* feedback fixes

* feedback fixes

* feedback fixes

* feedback fixes

* feedback fix

* small refactor

* added name and removed unused state

* fixed executor creation

* fixed executor creation

* added saving edited client profile

* added saving edited client profile

* improved trash icon styles

* test fix

* Some code suggestions

* Some more code suggestions

* feedback fixes

* feedback fixes

* use find instead of filter

* feedback fixes

* added defaultValues for executors

* removed defaultValues for executors

* final feedback fixes

* minor fixes

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-10-26 16:16:19 -04:00
mfrances17
aad3b2ba43
Fixes cypress memory issue and several tests (#1358)
* fixes memory issue and 3 tests

* all tests passing locally
2021-10-26 08:41:08 -04:00
alevid99
3fa13259e0
Added attributes tab to users (#1383) 2021-10-25 16:38:54 +02:00
Erik Jan de Wit
82c04d2e4a
added required actions tab (#1338) 2021-10-19 17:30:57 +02:00
Jenny
8ccc488bac
add create client policy form; WIP (#1312)
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

update test file

replace hardcoded URL with path

fix tests

correct tab name

fix duplicates test

add create client policy form; WIP

add client policy tests

tests

createClientPolicyFormTests

lint

tests

remove comments

comment out json test

add empty state test

check reloading json policies

client policy tests are passing

all client policy tests passing locally
2021-10-19 10:31:27 -04:00
Erik Jan de Wit
0b4cb21134
added missing action menu on flow details (#1311) 2021-10-14 16:54:07 +02:00
Jenny
8917744c04
Identity providers(mappers): update form fields for all Social mapper types (#1304)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-10-06 13:04:17 +02:00
agagancarczyk
fae250f13e
added test for searching client profiles (#1305)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-10-05 09:08:05 +01:00
Jenny
ed7ba908ba
Identity providers(mappers): update "create" form fields for all OIDC mapper types (#1286)
* correct form fields for UsernameTemplateImporter

wip tests

add username template importer type functionality

add create/edit functionality for username template importer SAML provider type

changes to helpText and title text

fix help text for mapper types

correct form fields for UsernameTemplateImporter

add fields

PR feedback and fix tests

fix test

add all saml mapper type fields

wip SAML mapper type fields

first draf SAML mapper type fields

tests

oidc changes with forms

tests

remove unused func

* fix tests

* remove unused vars
2021-10-04 11:34:02 -04:00
agagancarczyk
9af18e11e2
Client add executors (#1284)
* client-add-executors: wip

* client-add-executors: added logic for deleting client from dropdown

* client-add-executors: wip

* client-add-executors: added edit profiles

* client-add-executors: added refesh client profiles

* client-add-executors: added cypress tests

* commented out test failing only in CI

* Update cypress/integration/realm_settings_test.spec.ts

Co-authored-by: Erik Jan de Wit <edewit@redhat.com>

* changed to arrow functions

* feedback fixes

* feedback fixes

* uncommented failing test to see if still failing and why

* test possible fix

* test fix

* test fix

* test fix

* client-add-executors: reused normaliseProfile func for delete dialog

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Erik Jan de Wit <edewit@redhat.com>
2021-10-04 14:39:54 +01:00