Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cad787f

Browse files
committedJun 28, 2023
wip
1 parent 896c592 commit cad787f

File tree

3 files changed

+70
-88
lines changed

3 files changed

+70
-88
lines changed
 

‎.github/workflows/verify.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ jobs:
162162

163163
miw-integration-tests:
164164
runs-on: ubuntu-latest
165+
continue-on-error: true
165166
needs: [ verify-formatting, verify-license-headers ]
166167

167168
steps:

‎edc-tests/e2e-tests/src/test/resources/docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ services:
4747
APPLICATION_ENVIRONMENT: dev
4848
DB_HOST: postgres
4949
DB_PORT: 5432
50+
USE_SSL: false
5051

5152
#create miw database and update below properties
5253
DB_USER_NAME: keycloak
@@ -55,7 +56,7 @@ services:
5556
KEYCLOAK_MIW_PUBLIC_CLIENT: miw_public
5657
MANAGEMENT_PORT: 8090
5758
MIW_HOST_NAME: localhost:8080
58-
ENFORCE_HTTPS_IN_DID_RESOLUTION: 'false'
59+
ENFORCE_HTTPS_IN_DID_RESOLUTION: false
5960
ENCRYPTION_KEY: Woh9waid4Ei5eez0aitieghoow9so4oe
6061
AUTHORITY_WALLET_BPN: BPNL000000000000
6162
AUTHORITY_WALLET_NAME: Catena-X

‎edc-tests/e2e-tests/src/test/resources/miw_test_realm.json

+67-87
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,16 @@
211211
"create-client",
212212
"manage-events",
213213
"view-realm",
214-
"view-identity-providers",
215214
"manage-users",
215+
"view-identity-providers",
216216
"impersonation",
217217
"query-realms",
218218
"view-users",
219219
"view-clients",
220220
"view-authorization",
221221
"query-groups",
222-
"view-events",
223222
"query-clients",
223+
"view-events",
224224
"manage-clients",
225225
"manage-realm"
226226
]
@@ -473,8 +473,9 @@
473473
"otpPolicyPeriod": 30,
474474
"otpPolicyCodeReusable": false,
475475
"otpSupportedApplications": [
476-
"totpAppFreeOTPName",
477-
"totpAppGoogleName"
476+
"totpAppMicrosoftAuthenticatorName",
477+
"totpAppGoogleName",
478+
"totpAppFreeOTPName"
478479
],
479480
"webAuthnPolicyRpEntityName": "keycloak",
480481
"webAuthnPolicySignatureAlgorithms": [
@@ -502,8 +503,8 @@
502503
"webAuthnPolicyPasswordlessAcceptableAaguids": [],
503504
"users": [
504505
{
505-
"id": "eb4c29c6-4fca-43be-a124-883400f2d777",
506-
"createdTimestamp": 1685594018433,
506+
"id": "7e5c957b-2f20-41e0-85fb-e84656caadfe",
507+
"createdTimestamp": 1687957169104,
507508
"username": "service-account-miw_private_client",
508509
"enabled": true,
509510
"totp": false,
@@ -517,10 +518,10 @@
517518
"clientRoles": {
518519
"miw_private_client": [
519520
"view_wallets",
520-
"view_wallet",
521+
"update_wallet",
521522
"add_wallets",
522-
"update_wallets",
523-
"update_wallet"
523+
"view_wallet",
524+
"update_wallets"
524525
]
525526
},
526527
"notBefore": 0,
@@ -666,7 +667,9 @@
666667
"publicClient": true,
667668
"frontchannelLogout": false,
668669
"protocol": "openid-connect",
669-
"attributes": {},
670+
"attributes": {
671+
"post.logout.redirect.uris": "+"
672+
},
670673
"authenticationFlowBindingOverrides": {},
671674
"fullScopeAllowed": false,
672675
"nodeReRegistrationTimeout": 0,
@@ -704,7 +707,9 @@
704707
"publicClient": false,
705708
"frontchannelLogout": false,
706709
"protocol": "openid-connect",
707-
"attributes": {},
710+
"attributes": {
711+
"post.logout.redirect.uris": "+"
712+
},
708713
"authenticationFlowBindingOverrides": {},
709714
"fullScopeAllowed": false,
710715
"nodeReRegistrationTimeout": 0,
@@ -751,6 +756,7 @@
751756
"oidc.ciba.grant.enabled": "false",
752757
"client.secret.creation.time": "1684923648",
753758
"backchannel.logout.session.required": "true",
759+
"post.logout.redirect.uris": "+",
754760
"display.on.consent.screen": "false",
755761
"oauth2.device.authorization.grant.enabled": "false",
756762
"backchannel.logout.revoke.offline.tokens": "false"
@@ -812,6 +818,7 @@
812818
"consentRequired": false,
813819
"config": {
814820
"user.session.note": "clientAddress",
821+
"userinfo.token.claim": "true",
815822
"id.token.claim": "true",
816823
"access.token.claim": "true",
817824
"claim.name": "clientAddress",
@@ -826,6 +833,7 @@
826833
"consentRequired": false,
827834
"config": {
828835
"user.session.note": "clientId",
836+
"userinfo.token.claim": "true",
829837
"id.token.claim": "true",
830838
"access.token.claim": "true",
831839
"claim.name": "clientId",
@@ -840,6 +848,7 @@
840848
"consentRequired": false,
841849
"config": {
842850
"user.session.note": "clientHost",
851+
"userinfo.token.claim": "true",
843852
"id.token.claim": "true",
844853
"access.token.claim": "true",
845854
"claim.name": "clientHost",
@@ -874,14 +883,14 @@
874883
"alwaysDisplayInConsole": false,
875884
"clientAuthenticatorType": "client-secret",
876885
"redirectUris": [
886+
"http://localhost:8080/*",
877887
"http://localhost/*",
878-
"http://localhost:8087/*",
879-
"http://localhost:8080/*"
888+
"http://localhost:8087/*"
880889
],
881890
"webOrigins": [
891+
"http://localhost:8080",
882892
"http://localhost",
883-
"http://localhost:8087",
884-
"http://localhost:8080"
893+
"http://localhost:8087"
885894
],
886895
"notBefore": 0,
887896
"bearerOnly": false,
@@ -895,9 +904,10 @@
895904
"protocol": "openid-connect",
896905
"attributes": {
897906
"oidc.ciba.grant.enabled": "false",
907+
"backchannel.logout.session.required": "true",
908+
"post.logout.redirect.uris": "+",
898909
"display.on.consent.screen": "false",
899910
"oauth2.device.authorization.grant.enabled": "false",
900-
"backchannel.logout.session.required": "true",
901911
"backchannel.logout.revoke.offline.tokens": "false"
902912
},
903913
"authenticationFlowBindingOverrides": {},
@@ -955,7 +965,9 @@
955965
"publicClient": false,
956966
"frontchannelLogout": false,
957967
"protocol": "openid-connect",
958-
"attributes": {},
968+
"attributes": {
969+
"post.logout.redirect.uris": "+"
970+
},
959971
"authenticationFlowBindingOverrides": {},
960972
"fullScopeAllowed": false,
961973
"nodeReRegistrationTimeout": 0,
@@ -1134,6 +1146,7 @@
11341146
"consentRequired": false,
11351147
"config": {
11361148
"multivalued": "true",
1149+
"userinfo.token.claim": "true",
11371150
"user.attribute": "foo",
11381151
"id.token.claim": "true",
11391152
"access.token.claim": "true",
@@ -1176,7 +1189,8 @@
11761189
"consentRequired": false,
11771190
"config": {
11781191
"id.token.claim": "true",
1179-
"access.token.claim": "true"
1192+
"access.token.claim": "true",
1193+
"userinfo.token.claim": "true"
11801194
}
11811195
}
11821196
]
@@ -1625,13 +1639,13 @@
16251639
"subComponents": {},
16261640
"config": {
16271641
"allowed-protocol-mapper-types": [
1628-
"oidc-full-name-mapper",
1629-
"saml-role-list-mapper",
1642+
"oidc-sha256-pairwise-sub-mapper",
16301643
"saml-user-attribute-mapper",
1631-
"oidc-usermodel-attribute-mapper",
16321644
"saml-user-property-mapper",
1645+
"oidc-full-name-mapper",
1646+
"oidc-usermodel-attribute-mapper",
1647+
"saml-role-list-mapper",
16331648
"oidc-address-mapper",
1634-
"oidc-sha256-pairwise-sub-mapper",
16351649
"oidc-usermodel-property-mapper"
16361650
]
16371651
}
@@ -1645,13 +1659,13 @@
16451659
"config": {
16461660
"allowed-protocol-mapper-types": [
16471661
"oidc-full-name-mapper",
1648-
"saml-role-list-mapper",
1649-
"oidc-usermodel-attribute-mapper",
1662+
"saml-user-attribute-mapper",
16501663
"oidc-address-mapper",
1664+
"oidc-sha256-pairwise-sub-mapper",
16511665
"oidc-usermodel-property-mapper",
16521666
"saml-user-property-mapper",
1653-
"oidc-sha256-pairwise-sub-mapper",
1654-
"saml-user-attribute-mapper"
1667+
"oidc-usermodel-attribute-mapper",
1668+
"saml-role-list-mapper"
16551669
]
16561670
}
16571671
},
@@ -1752,7 +1766,7 @@
17521766
"supportedLocales": [],
17531767
"authenticationFlows": [
17541768
{
1755-
"id": "fb171175-b83a-42fa-af99-d3f99cd44db2",
1769+
"id": "04cc2aa7-9e5b-4178-a1a2-dad58cf99367",
17561770
"alias": "Account verification options",
17571771
"description": "Method with which to verity the existing account",
17581772
"providerId": "basic-flow",
@@ -1778,7 +1792,7 @@
17781792
]
17791793
},
17801794
{
1781-
"id": "ccd861f8-be9b-4d54-9722-c753e155b342",
1795+
"id": "fa4d6b27-5fac-4b3b-9cbc-badb7cfe90ed",
17821796
"alias": "Authentication Options",
17831797
"description": "Authentication options.",
17841798
"providerId": "basic-flow",
@@ -1812,7 +1826,7 @@
18121826
]
18131827
},
18141828
{
1815-
"id": "4e85d167-f0de-4d21-9675-7cbd4d30e12d",
1829+
"id": "266db702-5928-4149-b2bd-701d0722eb93",
18161830
"alias": "Browser - Conditional OTP",
18171831
"description": "Flow to determine if the OTP is required for the authentication",
18181832
"providerId": "basic-flow",
@@ -1838,7 +1852,7 @@
18381852
]
18391853
},
18401854
{
1841-
"id": "e70aa7d3-68a9-44e9-9f1d-0961dd5430d1",
1855+
"id": "dd326252-8827-445d-a098-9ec953932387",
18421856
"alias": "Direct Grant - Conditional OTP",
18431857
"description": "Flow to determine if the OTP is required for the authentication",
18441858
"providerId": "basic-flow",
@@ -1864,7 +1878,7 @@
18641878
]
18651879
},
18661880
{
1867-
"id": "089a1b04-f00d-4b16-a4f6-836cf97c73af",
1881+
"id": "b8f5c247-b9ba-40c7-a14e-05a235bed46f",
18681882
"alias": "First broker login - Conditional OTP",
18691883
"description": "Flow to determine if the OTP is required for the authentication",
18701884
"providerId": "basic-flow",
@@ -1890,7 +1904,7 @@
18901904
]
18911905
},
18921906
{
1893-
"id": "36a2147c-f4ea-4d7f-862b-6c7d7bcfd458",
1907+
"id": "f40cbe9a-ad2a-476c-b85d-ec426ce100b2",
18941908
"alias": "Handle Existing Account",
18951909
"description": "Handle what to do if there is existing account with same email/username like authenticated identity provider",
18961910
"providerId": "basic-flow",
@@ -1916,7 +1930,7 @@
19161930
]
19171931
},
19181932
{
1919-
"id": "09f37d50-270b-4c6f-8d1c-248bd2fad894",
1933+
"id": "60ba180d-92f3-4195-abd4-a925121994e7",
19201934
"alias": "Reset - Conditional OTP",
19211935
"description": "Flow to determine if the OTP should be reset or not. Set to REQUIRED to force.",
19221936
"providerId": "basic-flow",
@@ -1942,7 +1956,7 @@
19421956
]
19431957
},
19441958
{
1945-
"id": "145d5b8c-0ea1-44c7-94d5-9c68e4aebdfb",
1959+
"id": "0b5f7bb3-59e5-4d0e-9e8e-6d0e52984ad2",
19461960
"alias": "User creation or linking",
19471961
"description": "Flow for the existing/non-existing user alternatives",
19481962
"providerId": "basic-flow",
@@ -1969,7 +1983,7 @@
19691983
]
19701984
},
19711985
{
1972-
"id": "b73cf97b-b3e2-4720-a6d6-5f2545cf84ca",
1986+
"id": "37290b7b-23f8-4653-ad2c-2593db5760f3",
19731987
"alias": "Verify Existing Account by Re-authentication",
19741988
"description": "Reauthentication of existing account",
19751989
"providerId": "basic-flow",
@@ -1995,7 +2009,7 @@
19952009
]
19962010
},
19972011
{
1998-
"id": "fdbabc6d-21e1-4fae-8bc3-384f9eac9363",
2012+
"id": "2e5ceac1-9c0d-4109-b8f2-22c9efb00f0b",
19992013
"alias": "browser",
20002014
"description": "browser based authentication",
20012015
"providerId": "basic-flow",
@@ -2037,7 +2051,7 @@
20372051
]
20382052
},
20392053
{
2040-
"id": "b381d57b-c3a3-4bd1-99dc-8ab1b61b6eef",
2054+
"id": "c35579f7-cd70-4c66-9ee7-c21bf7ddd1e0",
20412055
"alias": "clients",
20422056
"description": "Base authentication for clients",
20432057
"providerId": "client-flow",
@@ -2079,7 +2093,7 @@
20792093
]
20802094
},
20812095
{
2082-
"id": "8c327c5a-256d-4b77-abfd-b29a9abcabc4",
2096+
"id": "c2487b50-dbf9-4536-be9d-940c8ac5eb21",
20832097
"alias": "direct grant",
20842098
"description": "OpenID Connect Resource Owner Grant",
20852099
"providerId": "basic-flow",
@@ -2113,7 +2127,7 @@
21132127
]
21142128
},
21152129
{
2116-
"id": "06e02fd2-1e3a-462a-b56f-343adf6b497e",
2130+
"id": "e98419d1-4cb4-469d-a866-2adc9fdb4c6a",
21172131
"alias": "docker auth",
21182132
"description": "Used by Docker clients to authenticate against the IDP",
21192133
"providerId": "basic-flow",
@@ -2131,7 +2145,7 @@
21312145
]
21322146
},
21332147
{
2134-
"id": "c7549abe-4291-455c-9237-e14327f0242a",
2148+
"id": "672acd89-be23-48ee-ac51-c5d846e77faf",
21352149
"alias": "first broker login",
21362150
"description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account",
21372151
"providerId": "basic-flow",
@@ -2158,7 +2172,7 @@
21582172
]
21592173
},
21602174
{
2161-
"id": "6aeeac48-e580-489d-a714-8a9e492c2f38",
2175+
"id": "1099c284-d2f6-44de-b1b3-87d5cb0990c1",
21622176
"alias": "forms",
21632177
"description": "Username, password, otp and other auth forms.",
21642178
"providerId": "basic-flow",
@@ -2184,7 +2198,7 @@
21842198
]
21852199
},
21862200
{
2187-
"id": "b374af96-bbea-4b80-8847-6e6de58df0b3",
2201+
"id": "d02c9502-c51d-4968-ba5d-d3771054e85a",
21882202
"alias": "http challenge",
21892203
"description": "An authentication flow based on challenge-response HTTP Authentication Schemes",
21902204
"providerId": "basic-flow",
@@ -2210,7 +2224,7 @@
22102224
]
22112225
},
22122226
{
2213-
"id": "4012e109-120c-4754-bc53-838a158edfcc",
2227+
"id": "18ee7c5d-3b4b-45c7-8d5a-761c2de30711",
22142228
"alias": "registration",
22152229
"description": "registration flow",
22162230
"providerId": "basic-flow",
@@ -2229,7 +2243,7 @@
22292243
]
22302244
},
22312245
{
2232-
"id": "058f9688-74be-46f2-9e13-ca28a71dc0f0",
2246+
"id": "41c9dfb7-686d-4679-b471-abd04c08519d",
22332247
"alias": "registration form",
22342248
"description": "registration form",
22352249
"providerId": "form-flow",
@@ -2271,7 +2285,7 @@
22712285
]
22722286
},
22732287
{
2274-
"id": "b2b7b5fc-462b-447e-9ec3-64577571ddff",
2288+
"id": "2d4c9ede-ca14-4454-bf7b-60e9c23b1951",
22752289
"alias": "reset credentials",
22762290
"description": "Reset credentials for a user if they forgot their password or something",
22772291
"providerId": "basic-flow",
@@ -2313,7 +2327,7 @@
23132327
]
23142328
},
23152329
{
2316-
"id": "6f762a68-34f5-4f0b-bb59-af7c0df4840d",
2330+
"id": "d1fea7bd-8e31-4b67-9cb8-b720c2b5b49c",
23172331
"alias": "saml ecp",
23182332
"description": "SAML ECP Profile Authentication Flow",
23192333
"providerId": "basic-flow",
@@ -2333,14 +2347,14 @@
23332347
],
23342348
"authenticatorConfig": [
23352349
{
2336-
"id": "f7370c8e-6047-44e2-a447-2c20b42d75f2",
2350+
"id": "519345fd-5f36-411f-ac29-9a28fea6e1f1",
23372351
"alias": "create unique user config",
23382352
"config": {
23392353
"require.password.update.after.registration": "false"
23402354
}
23412355
},
23422356
{
2343-
"id": "47af4717-f9cd-4dd9-b980-246e33a5829b",
2357+
"id": "2ad5fe8b-f6aa-4608-bbc2-cbf2ff218b67",
23442358
"alias": "review profile config",
23452359
"config": {
23462360
"update.profile.on.first.login": "missing"
@@ -2358,9 +2372,9 @@
23582372
"config": {}
23592373
},
23602374
{
2361-
"alias": "terms_and_conditions",
2375+
"alias": "TERMS_AND_CONDITIONS",
23622376
"name": "Terms and Conditions",
2363-
"providerId": "terms_and_conditions",
2377+
"providerId": "TERMS_AND_CONDITIONS",
23642378
"enabled": false,
23652379
"defaultAction": false,
23662380
"priority": 20,
@@ -2439,8 +2453,8 @@
24392453
"attributes": {
24402454
"cibaBackchannelTokenDeliveryMode": "poll",
24412455
"cibaAuthRequestedUserHint": "login_hint",
2442-
"oauth2DevicePollingInterval": "5",
24432456
"clientOfflineSessionMaxLifespan": "0",
2457+
"oauth2DevicePollingInterval": "5",
24442458
"clientSessionIdleTimeout": "0",
24452459
"actionTokenGeneratedByUserLifespan-execute-actions": "",
24462460
"actionTokenGeneratedByUserLifespan-verify-email": "",
@@ -2454,46 +2468,12 @@
24542468
"parRequestUriLifespan": "60",
24552469
"clientSessionMaxLifespan": "0"
24562470
},
2457-
"keycloakVersion": "20.0.3",
2471+
"keycloakVersion": "21.0.2",
24582472
"userManagedAccessAllowed": false,
24592473
"clientProfiles": {
24602474
"profiles": []
24612475
},
24622476
"clientPolicies": {
24632477
"policies": []
2464-
},
2465-
"users": [
2466-
{
2467-
"username": "catena-x",
2468-
"email": "miwuser@test.test",
2469-
"firstName": "miwuser",
2470-
"lastName": "miwuser",
2471-
"enabled": true,
2472-
"emailVerified": true,
2473-
"attributes": {
2474-
"BPN": [
2475-
"BPNL000000000000"
2476-
]
2477-
},
2478-
"credentials": [
2479-
{
2480-
"type": "password",
2481-
"value": "password"
2482-
}
2483-
],
2484-
"clientRoles": {
2485-
"account": [
2486-
"view-profile",
2487-
"manage-account"
2488-
],
2489-
"miw_private_client": [
2490-
"view_wallets",
2491-
"view_wallet",
2492-
"add_wallets",
2493-
"update_wallets",
2494-
"update_wallet"
2495-
]
2496-
}
2497-
}
2498-
]
2478+
}
24992479
}

0 commit comments

Comments
 (0)
Please sign in to comment.