Commit graph

824 commits

Author SHA1 Message Date
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
eb40cabf03
Use type-safe alternative for links (#1280) 2021-10-01 12:52:45 +02:00
Jon Koops
e832e2e454
Remove ability to delete a realm client from the overview (#1278) 2021-10-01 12:52:24 +02:00
Jon Koops
79dc067add
Correct help text for XSS protection header (#1269) 2021-09-30 14:54:04 +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
bd8fc558d5
now checks if data could be loaded and throw error (#1265) 2021-09-30 10:58:48 +02:00
Jon Koops
5d8dce7143
Add help text to the realm localization fields (#1266) 2021-09-30 10:58:30 +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
Jon Koops
cfe83c769b
Show a tooltip to explain bearer-only clients (#1244) 2021-09-28 14:09:27 +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
Erik Jan de Wit
673fe7c9b3
fixing messages (#1241)
fixes: #1160
2021-09-27 16:54:01 +02:00
Erik Jan de Wit
f0c0ab232a
Added missing labels on the client scope mappers (#1217)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-27 12:32:16 +02:00
Erik Jan de Wit
bd6a0a4e35
fixes: #1215 (#1235) 2021-09-27 11:57:29 +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
642503e26a
Identity Providers(mappers): fix help text (#1212)
* fix help text for mapper types

* fix name field

* address PR feedback from mark and  add help text for all mapper types

* fix attribute importer help text
2021-09-24 16:27:44 -04:00
mfrances17
80ed33e832
add stored tokens readable to oidc (#1221) 2021-09-24 18:09:44 +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
Erik Jan de Wit
8a9f96e53a
fixes issue with selected locals (#1200)
fixes: #1179
2021-09-23 16:15:37 +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
Erik Jan de Wit
34e9d7a3ca
added description on new client scope screen (#1203) 2021-09-22 10:35:02 +02:00
Erik Jan de Wit
27dd8d7e13
deleted original screens, works like old console (#1187)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-20 17:31:05 +02:00
agagancarczyk
2237ee4d65
Realm setting profiles (#1149)
* admin-events-list: added PF code editor

* realm-settings: added template for client policies tab

* realm-settings: fixed space between text and q icon

* admin-events-list: hardcoded representation dialog

* realm-settings: css improvement

* realm-settings: feedback applied

* realm-settings: feedback applied

* admin-events-list: fixed representation dialog

* admin-events-list: fixed representation dialog

* Update src/events/AdminEvents.tsx

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

* admin-events-list: fixed representation dialog

* real-settings-profile: added subtabs

* realm-settings-list: added table displaying client profiles and delete dialog

* realm-settings-list: updated column name

* realm-settings-list: implemented radio button format change

* realm-settings-list: added buttons for JSON editor

* realm-settings-list: added isPaginated to profiles table

* realm-settings-list: impoved css for json editor

* realm-settings-list: fix for loader

* realm-settings-list: feedback fixes

* realm-settings-list: feedback fixes

* realm-settings-list: feedback fixes

* realm-settings-list: feedback fixes

* realm-settings-list: feedback fixes

* realm-settings-list: feedback fixes

* realm-settings-list: disbaled row when profile is global

* realm-settings-new-profile: added template for new profile - wip

* realm-settings-list: feedback fixes

* Add some @ts-ignore comments for the links

* Split routes into multiple files

* realm-settings: temporarily hardcoded path for cancelling new profile btn, bumped admin-client dep

* realm-settings: reverted back to Link

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-20 13:42:07 +01:00
mfrances17
e89a69047f
SAML ID provider cleanup (#1170)
* most fields fixed

* small issues

* all but one value working

* all SAML fields working

* add fixes from jon review
2021-09-17 13:51:43 -04:00
mfrances17
6063c8db96
add tooltips for client login fields (#1184) 2021-09-17 13:50:56 -04: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
Erik Jan de Wit
71d881ccd0
multiple issues with this mapper (#1155) 2021-09-14 14:54:14 +02:00
Erik Jan de Wit
528d22ce30
fixed missing fields (#1151) 2021-09-14 12:11:22 +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
Jenny
7414e174b6
set alias to read only in IdPs (#1144) 2021-09-13 11:15:04 +02:00
Jon Koops
5979101b0b
Process UXD feedback for client revocation (#1139) 2021-09-10 15:25:18 +02:00
Jon Koops
bd1c7fa102
Remove internationalization from 'Themes' tab (#1138) 2021-09-09 14:00:20 +02:00
agagancarczyk
b9208cb9c7
Admin events rep dialog (#1137)
* admin-events-list: added PF code editor

* realm-settings: added template for client policies tab

* realm-settings: fixed space between text and q icon

* admin-events-list: hardcoded representation dialog

* realm-settings: css improvement

* realm-settings: feedback applied

* realm-settings: feedback applied

* admin-events-list: fixed representation dialog

* admin-events-list: fixed representation dialog

* Update src/events/AdminEvents.tsx

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

* admin-events-list: fixed representation dialog

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-09 11:45:19 +01:00
Jenny
2923a4c16f
Identity Providers(SAML): Adds data table for SAML mappers (#1058)
* data table for saml mappers

saml mapeprs tab

fix localized text

PR feedback from Jon

remove jsx fragment

remove comment

remove toolbar button

* try fixing cypress test

* remove optional chaining

* PR feedback from Jon

* more PR feedback from Jon

* rename variable and use find()

* useFetch() change as suggested by Jon

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

* rebase and use reset function

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-08 10:33:19 -04: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
Jon Koops
b5e5677cb5
Keep realm value from RealmContext in sync with the URL (#1130) 2021-09-07 13:19:50 +02:00
Jon Koops
3fcf5c44d0
Link to RealmRoleRoute using a static path (#1129) 2021-09-07 12:29:34 +02: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
Erik Jan de Wit
e187314b1f
added user role mapping tab to user details (#1075)
* added user role mapping tab to user details

* fix imports to admin client

* Update src/user/UserRoleMapping.tsx

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

* Update src/user/UserRoleMapping.tsx

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

* added await

* fixed merge error

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-03 10:40:59 -04: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
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
d35582521d
Time selector was generating duplicate id's (#1117) 2021-09-03 08:55:51 +02:00
Erik Jan de Wit
e5e07eb1bc
added remove all temporary locks (#1082) 2021-09-02 16:16:32 -04:00
Erik Jan de Wit
2416d25c38
refactor realm settings (#1083)
also fixes: #1038
2021-09-02 16:14:43 -04:00
mfrances17
3f061efead
Adds routing for and fixes add new/save existing identity providers (#1105)
* fix routing and edit existing provider

* PR review comments
2021-09-02 13:45:17 -04:00
Erik Jan de Wit
e58dfc7508
added unlock user when brute force detect on (#1093)
* added unlock user when brute force detect on

+ some light refactor

* fixed spelling

* fixed merge error
2021-09-02 09:44:31 -04:00
Stan Silvert
0853e20ba1
Fix help text for minimum quick login wait (#1106) 2021-09-01 19:20:50 +02:00
Jenny
8bfd78cea9
Users: Add Identity Provider Links tab (#1086) 2021-08-31 10:13:25 +02:00
mfrances17
299993d30b
Fix labels for user vs admin clear events (#1079)
* fix labels for user vs admin clear events

* fix lint issue unrelated to fixed issue
2021-08-27 15:18:23 -04:00
Jon Koops
e062603ff2
Remove useless React fragments (#1062) 2021-08-26 14:15:28 +02:00
Jon Koops
b15c240d9e
Fix broken import to admin client (#1077) 2021-08-26 13:04:21 +02:00
agagancarczyk
764421033f
events: reverted to Flex (#1076)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-08-26 11:37:56 +01:00
agagancarczyk
2657eaf1d8
Events css fixes (#1074)
* admin events: decreased form width and spaces between fields

* events: css fixes

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-08-26 10:15:59 +01:00
Jon Koops
9850505001
Use pre-release version of Admin Client (#1063) 2021-08-26 10:39:35 +02:00
Erik Jan de Wit
cce21c43a6
fixed removed save buttons (#1047)
fixes: #1043
2021-08-25 18:06:24 +02:00
Jenny
09f4279372
update users empty state (#1037) 2021-08-25 16:48:11 +02:00
agagancarczyk
0fbd196380
Events search fixes (#1056)
* events: uncommented test for searching user events

* events: added refresh btn and tidied up css

* events: increased search form width

* events: removed unwanted Divider

* events: fixed grey line issue when no events logged, fixed test

* events: renamed css classes to make them reusable for admin search

* events: added admin events search ui

* events: fixed refresh btn on user events tab

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
2021-08-25 15:19:26 +01:00
Erik Jan de Wit
45095fdc42
Initial version of config settings for executions (#1015)
* initial version of config settings for executions

still needs to render different controls based on the types

* fixing the types

* Update src/authentication/components/ExecutionConfigModal.tsx

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

* fix use effect dependency fix

* added form type

* Add ExecutionConfigModalProps type

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-25 15:36:04 +02:00
Erik Jan de Wit
5b23354e35
changed to append to url, for client role details (#1048)
fixes: #1041
2021-08-25 15:22:53 +02:00
Erik Jan de Wit
02ffc1fb88
fixed flow name (#1049)
fixes: #1045
2021-08-25 08:33:57 -04:00
Erik Jan de Wit
4fc3865bbd
use realm id instead of realm name (#1051)
fixes: #1042
2021-08-24 12:39:16 +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
Erik Jan de Wit
89870cafc2
made realm name editable (#1001)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-23 21:00:42 +02:00
Jenny
e653d87894
add priority attribute when dragging data list elements (#947)
* fix conflict

* pr feedback from jon

* add key provider type to separate component

* remove log stmt

* remove spread syntax

* add default priority to all provider types

* remove sort by priority from providers tab

* add instruction tooltip

* correct list sorting order

* feedback from Jon wip

* more feedback from Jon

* update aria-describedby

* data list header and draggable button spacing

* Update src/realm-settings/RealmSettingsSection.tsx

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

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-20 12:15:12 -04:00
Erik Jan de Wit
75fd4007d3
Use correct translation for LDAP mapper (#1030) 2021-08-20 17:50:05 +02:00
Jon Koops
ddd248ed0e
Process UXD review for Client Scopes (#1026) 2021-08-20 12:37:40 +02:00
agagancarczyk
3469ccb509
events: search user events form, chips for searched fields and tests (#930) 2021-08-20 11:13:47 +02:00
mfrances17
7efa03dc3f
Add UI and partial functionality for creating SAML identity providers (#944)
* fix OIDC string issue

* preliminary UI changes

* saml create new fields added

* use new routing for saml

* add msg strings

* most fields added

* add reqAuthnConstraints section

* final help strings and options

* add cypress tests

* fix legacy cypress cleanup tasks

* fix selects and hardcoded strings

* most PR review comments incorporated

* PR review edits

* more PR review comments
2021-08-19 10:41:27 -04:00
Jon Koops
c5abf8349e
Add a constant for the default locale (#1023) 2021-08-19 15:56:00 +02:00
Jon Koops
18e0a930be
Prefer Array#includes() over Array#indexOf() (#1013) 2021-08-18 11:29:42 +02:00
Erik Jan de Wit
2f6e0064c1
update placeholder text resemble actual url (#1014) 2021-08-17 16:08:24 +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
Erik Jan de Wit
37f0010b81
changed save buttons from tertiary to secondary (#1000)
* changed save buttons from `tertiary` to `primary`

fixes: #959

* changed buttons from `tertiary` to `secondary`

fixes: #959
2021-08-16 11:22:56 +02:00
Jon Koops
317acd8239
Prefer optional chaining over validating references (#992) 2021-08-12 13:15:47 +02:00
Erik Jan de Wit
6f29839b06
added try catch as this call fails locally (#995) 2021-08-12 10:56:25 +02:00
Jon Koops
71b1c4a444
Pass login realm to WhoAmI (#989)
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-08-11 16:38:55 +02:00
Erik Jan de Wit
54dca4df65
made "simple" the default authentication type (#993) 2021-08-11 16:32:40 +02:00
Erik Jan de Wit
9ce3f2c53c
added user in role for client tab (#987)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-11 13:44:18 +02:00
Jon Koops
a6d38096b7
Fix realm intialization (#990) 2021-08-11 13:23:59 +02:00
Erik Jan de Wit
15a87b7d2e
added empty state for new realms with no sessions (#986) 2021-08-11 11:33:51 +02:00
Erik Jan de Wit
ba8f927453
keep imported json instead of only form fields (#988) 2021-08-11 11:20:49 +02:00
Jon Koops
dbedd79883
Use correct default for 'Truststore SPI' (#980) 2021-08-11 07:52:12 +02:00
Jon Koops
d2ca2bf247
Convert more links to use new routes (#933)
* Convert more links to use new routes

* convert server info dropdown

* Fix link with render prop
2021-08-10 09:07:59 -04:00