Commit graph

172 commits

Author SHA1 Message Date
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
mfrances17
75da445971
prevent stacked notifications (#1438) 2021-10-28 14:58:54 -04: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
acd8921b20
Added mapping tab to clients (#1375)
* initial version mapper tab for clients

* added missing client select component

* added test

* Update src/client-scopes/add/components/ClientSelectComponent.tsx

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

* Update src/client-scopes/add/components/ClientSelectComponent.tsx

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

* now uses adminClient type for client search

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-10-20 16:26:05 +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
001d4ed6d4
Create client policy form (#1309)
* add create client policy form; WIP

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
2021-10-12 11:03:56 -04:00
Erik Jan de Wit
60e4676ac8
added saml keys tab (#1308)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-10-12 11:28:55 +02:00
Jenny
b942efc2aa
Delete mapper (#1307) 2021-10-07 12:08:29 +02:00
Jon Koops
10d7c35b81
Hide capability config for bearer-only clients (#1279) 2021-10-06 13:05:27 +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
Erik Jan de Wit
c71d21c748
Settings (SAML) (#1302) 2021-10-05 12:32:20 +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
Jon Koops
55307ec1ac
Prefer using arrow functions for callbacks (#1287) 2021-10-04 08:03:19 +02:00
Jenny
3b677c6e8e
Identity providers(mappers): update "create" form fields for all SAML mapper types (#1282) 2021-10-01 17:03:38 +02:00
Jon Koops
ed0949a44f
Add a human readable name for client protocol (#1283) 2021-10-01 16:36:36 +02:00
Jon Koops
8e8c6d74ea
Add tests for bearer-only client details (#1270) 2021-09-30 12:04:50 +02:00
Jenny
4d5c8f3f18
Identity Providers(Mappers): Add create/edit functionality for mappers of type Username Template Importer (#1248) 2021-09-30 11:26:36 +02:00
Erik Jan de Wit
cb86e5be3f
Small fix on policies tab (#1246) 2021-09-29 10:51:47 +02:00
Jon Koops
b9d1dbff4c
Hide certain elements on the page if client is a realm (#1245) 2021-09-28 17:14:49 +02:00
Jenny
02ce5c4e6e
Realm settings(login tab): fix switches (#1183)
* fix login tab

update cypress test

cypress test

rebase

test updates

cypress test fix

get correct ids

fix get call

fix tests

try refetching realm

add useEffect to fix server GET call

uncomment test

revert to original useFetch

prettier

create new function

set timeout to 10 ms

set to 100 ms

* add comment to useEffect per Jon feedback
2021-09-27 13:15:36 -04:00
Stan Silvert
1432b2712b
Temporary fix for group tests. (#1223) 2021-09-26 12:41:42 +02:00
agagancarczyk
bd423c4bbe
Create profile (#1218)
* create-client-profile: creating client profile wip

* create-profile: added deleting profile

* create-profile: add executors - wip

* create-profile: add executors - wip

* create-profile: add executors - wip

* create-profile: add executors - wip

* create-profile: added testId for tests

* create-profile: added cypress tests for client profiles

* Update cypress/support/pages/admin_console/manage/realm_settings/RealmSettingsPage.ts

marking fields as private

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

* Update src/realm-settings/NewClientProfileForm.tsx

removing async (not needed)

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

* feedback fixes

* Update src/realm-settings/NewClientProfileForm.tsx

new router link implementation

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

* simplify ClientProfile type

* align form type with model

* do not delete

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-24 11:46:01 +01:00
Erik Jan de Wit
b7ebd3260b
added subflow and create flow to authentication (#1198)
* added subflow and create flow to authentication

* fixed types
2021-09-23 17:06:58 +02:00
Jon Koops
453b5a07e7
Add editMode as a required field (#1209) 2021-09-23 16:11:41 +02:00
Jenny
bef9539389
Realm Settings(Client Policies): Add policies list (#1201)
* wip client policies: policies tab

* wip switches

* wip client policies: policies tab

* client policies list

* package.json

* revert to enabled
2021-09-23 09:41:29 -04:00
Erik Jan de Wit
8fc517f2a0
fix the name of the fields introduced test (#1199)
* fix the name of the fields introduced test

fixes: #1182

* changed to use display none to hide fields
2021-09-23 09:48:23 +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
c9f9a9b0c5
Check types when running Cypress (#1186) 2021-09-20 16:56:02 +02:00
Jon Koops
775885c56b
Configure Cypress to use the correct types (#1168) 2021-09-17 15:23:34 +02:00
Jon Koops
27bcd66a29
Lint all files in the project (#1167) 2021-09-16 12:24:21 +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
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
5979101b0b
Process UXD feedback for client revocation (#1139) 2021-09-10 15:25:18 +02:00
agagancarczyk
6d4b11aab2
Admin events auth dialog (#1131)
* admin-events-list: updated keys for Auth modal

* admin-events-list:added cypress test for auth dialog

* admin-events-list:added cypress test for representation dialog

* admin-events-list: fixed keys def

* admin-events-list: fixed keys def

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-09-07 12:38:36 +01:00
Erik Jan de Wit
f1f0c362b4
Add button on authentication flows (#1119) 2021-09-06 14:43:36 +02:00
dependabot[bot]
aba9e3d501
Bump typescript from 4.2.4 to 4.4.2 (#1081)
* Bump typescript from 4.2.4 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-06 09:48:53 +02:00
agagancarczyk
6e8ec947b5
Admin search (#1108)
* admin events: wip

* admin events: wip

* admin events: wip

* admin events: finalised admin search

* admin events: fixed user event search test

* admin events: added cypress tests

* admin events: added cypress tests

* admin events: added cypress tests for admin events search

* admin events: added auth prefix on the params

* admin events: improved search tests

* admin events: attempted fixing search tests

* admin events: fixed cypress events search tests

* admin events: fixed user events search test

* admin events: fixed user and admin events search test

* admin events: fixed admin events search test

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-09-03 11:50:45 +01:00
Stan Silvert
6df4725143
Comment tests (#1102)
* Comment delete providers test.

* Comment delete default mappers test
2021-09-01 09:45:46 -04:00
Jon Koops
9850505001
Use pre-release version of Admin Client (#1063) 2021-08-26 10:39:35 +02:00