Skip to content

Commit

Permalink
Merge branch 'feature/invite-roles'
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Aug 21, 2024
2 parents f16d28f + 48c3478 commit ca31411
Show file tree
Hide file tree
Showing 36 changed files with 1,096 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ delete button. Clicking this button will retract consent for only that service.
In order for this feature to work, you need to have an EngineBlock instance that supports this feature. See the
EngineBlock docs for more information on enabling the feature on the EngineBlock Api.

## OpenConext Invite roles

By setting the `invite_roles_enabled` flag to `true`, Profile will display the Invite Roles assigned to the logged in
user. By default the roles page is disabled.

See: https://github.com/OpenConext/OpenConext-Invite

## Release strategy
Please read: https://github.com/OpenConext/Stepup-Deploy/wiki/Release-Management for more information on the release strategy used in Openconext projects.

Expand Down
2 changes: 2 additions & 0 deletions assets/css/helpers/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,5 @@ $myServices_active: "data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns=
$connections: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='33' viewBox='0 0 32 33' style='fill:none;stroke:%23000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;'%3E%3Ctitle%3Ecog%3C/title%3E%3Cpath d='M10.546,2.438a1.957,1.957,0,0,0,2.908,0L14.4,1.4a1.959,1.959,0,0,1,3.41,1.413l-.071,1.4A1.958,1.958,0,0,0,19.79,6.267l1.4-.071A1.959,1.959,0,0,1,22.6,9.606l-1.042.94a1.96,1.96,0,0,0,0,2.909l1.042.94a1.959,1.959,0,0,1-1.413,3.41l-1.4-.071a1.958,1.958,0,0,0-2.056,2.056l.071,1.4A1.959,1.959,0,0,1,14.4,22.6l-.941-1.041a1.959,1.959,0,0,0-2.908,0L9.606,22.6A1.959,1.959,0,0,1,6.2,21.192l.072-1.4a1.958,1.958,0,0,0-2.056-2.056l-1.4.071A1.958,1.958,0,0,1,1.4,14.4l1.041-.94a1.96,1.96,0,0,0,0-2.909L1.4,9.606A1.958,1.958,0,0,1,2.809,6.2l1.4.071A1.958,1.958,0,0,0,6.267,4.211L6.2,2.81A1.959,1.959,0,0,1,9.606,1.4Z'/%3E%3Ccircle cx='12' cy='12.001' r='4.5'/%3E%3C/svg%3E%0A";
$connections_active: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='33' viewBox='0 0 32 33' style='fill:none;stroke:%23008738;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;'%3E%3Ctitle%3Ecog%3C/title%3E%3Cpath d='M10.546,2.438a1.957,1.957,0,0,0,2.908,0L14.4,1.4a1.959,1.959,0,0,1,3.41,1.413l-.071,1.4A1.958,1.958,0,0,0,19.79,6.267l1.4-.071A1.959,1.959,0,0,1,22.6,9.606l-1.042.94a1.96,1.96,0,0,0,0,2.909l1.042.94a1.959,1.959,0,0,1-1.413,3.41l-1.4-.071a1.958,1.958,0,0,0-2.056,2.056l.071,1.4A1.959,1.959,0,0,1,14.4,22.6l-.941-1.041a1.959,1.959,0,0,0-2.908,0L9.606,22.6A1.959,1.959,0,0,1,6.2,21.192l.072-1.4a1.958,1.958,0,0,0-2.056-2.056l-1.4.071A1.958,1.958,0,0,1,1.4,14.4l1.041-.94a1.96,1.96,0,0,0,0-2.909L1.4,9.606A1.958,1.958,0,0,1,2.809,6.2l1.4.071A1.958,1.958,0,0,0,6.267,4.211L6.2,2.81A1.959,1.959,0,0,1,9.606,1.4Z'/%3E%3Ccircle cx='12' cy='12.001' r='4.5'/%3E%3C/svg%3E%0A";
$conextLogo: "data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 202.6 62.5' style='enable-background:new 0 0 202.6 62.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E %23SURFconext %7B fill: %23fff;%7D%0A%3C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6.4,5.1 c0,2.5,1.8,3.9,3.8,4.6l2.8,0.9c1.4,0.4,2.5,0.8,2.5,1.7C20.1,23.4,18.6,24,17.4,24z M39.3,19.6c0,2.6-1.6,4.2-3.8,4.2 c-2.2,0-3.8-1.6-3.8-4.2v-7.4c0-1.3-0.7-1.9-2-1.9c-1.3,0-1.9,0.7-1.9,1.9v7.4c0,4.9,3.3,8,7.7,8c4.4,0,7.7-3.1,7.7-8v-7.4 c0-1.3-0.7-1.9-2-1.9c-1.3,0-1.9,0.7-1.9,1.9V19.6z M57.1,26.3c0.4,0.8,0.9,1.2,1.6,1.2c1,0,2.2-0.7,2.2-1.8c0-0.3-0.1-0.7-0.2-1 L58.9,21c1.7-0.9,2.6-2.5,2.6-4.7c0-3.5-2.6-6-6.3-6h-5.6c-1.3,0-1.9,0.7-1.9,1.9v13.2c0,1.3,0.7,1.9,1.9,1.9c1.3,0,2-0.7,2-1.9 v-3.4h3.5L57.1,26.3z M54.9,14.1c1.5,0,2.6,0.7,2.6,2.3c0,1.6-1.2,2.2-2.6,2.2h-3.3v-4.5H54.9z M74.2,21.4c1.2,0,1.8-0.6,1.8-1.8 c0-1.2-0.6-1.9-1.8-1.9h-4.6v-3.6H77c1.2,0,1.8-0.6,1.8-1.9c0-1.2-0.6-1.8-1.8-1.8h-9.3c-1.3,0-1.9,0.7-1.9,1.9v13.2 c0,1.3,0.7,1.9,1.9,1.9c1.3,0,1.9-0.7,1.9-1.9v-4.2H74.2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A";
$invite_roles: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.5 -0.5 16 16' fill='currentColor' id='Users-Three-Light--Streamline-Phosphor.svg' height='32' width='32'%3E%3Cdesc%3EUsers Three Light Streamline Icon: https://streamlinehq.com%3C/desc%3E%3Cpath d='M14.700509765625 8.291642578125002c-0.16512890625 0.12384375 -0.39938085937499995 0.090380859375 -0.523224609375 -0.0747421875 -0.632478515625 -0.8502421875 -1.631162109375 -1.3495839843750002 -2.69084765625 -1.345423828125 -0.2876953125 0 -0.467501953125 -0.311443359375 -0.32365429687499997 -0.5605957031250001 0.066755859375 -0.11562890625 0.19013671875000002 -0.186861328125 0.32365429687499997 -0.186861328125 1.2466875000000002 -0.00027539062500000003 2.02557421875 -1.3500234375000002 1.40199609375 -2.42954296875 -0.623578125 -1.079525390625 -2.1819375 -1.079185546875 -2.805041015625 0.000609375 -0.0731484375 0.126767578125 -0.12877734375 0.26285742187500005 -0.165369140625 0.40456640625 -0.071923828125 0.27858984375 -0.41845312500000004 0.374841796875 -0.62375390625 0.17326171875 -0.095279296875 -0.09355078125 -0.133412109375 -0.23083007812499998 -0.10003125 -0.36012304687499996 0.45373242187499996 -1.7646796875 2.6476347656250003 -2.376427734375 3.9490253906249997 -1.101140625 1.028783203125 1.008140625 0.926150390625 2.693736328125 -0.21734765625 3.569619140625 0.7369687500000001 0.275009765625 1.3790449218749998 0.75662109375 1.8493359375 1.387154296875 0.12384375 0.16512304687499998 0.090380859375 0.399375 -0.0747421875 0.5232187500000001Zm-3.38909765625 3.9989003906250002c0.1034296875 0.178705078125 0.042345703125 0.407419921875 -0.136412109375 0.51076171875 -0.056660156249999996 0.033210937499999996 -0.12118945312499999 0.050630859375 -0.1868671875 0.05044921875 -0.13360546874999998 0.000087890625 -0.257091796875 -0.07115624999999999 -0.32389453125 -0.186861328125 -1.422064453125 -2.409380859375 -4.907654296875 -2.409380859375 -6.32971875 0 -0.133353515625 0.254923828125 -0.49266210937499993 0.269888671875 -0.6467578125 0.02694140625 -0.077578125 -0.122314453125 -0.07749609375 -0.2784375 0.000205078125 -0.400669921875 0.509044921875 -0.8746171875 1.306072265625 -1.545263671875 2.2548339843750003 -1.897294921875 -1.849939453125 -1.2011367187500002 -1.70588671875 -3.95445703125 0.25929492187500003 -4.95598828125 1.9651816406249998 -1.0015253906250001 4.2776015625 0.49988671874999996 4.162359374999999 2.702548828125 -0.0479296875 0.916107421875 -0.531615234375 1.753875 -1.301021484375 2.253439453125 0.9461191406249999 0.35323242187500004 1.7405390625000001 1.02350390625 2.247978515625 1.896673828125ZM7.5 10.110457031249998c1.6302832031249999 0 2.649205078125 -1.76483203125 1.83406640625 -3.1766953125 -0.815138671875 -1.41186328125 -2.85298828125 -1.41186328125 -3.6681328125 0 -0.18587109375 0.32194921875 -0.283728515625 0.6871464843749999 -0.283728515625 1.0589003906249999 0 1.1696250000000001 0.9481699218749999 2.1177949218750003 2.1177949218750003 2.1177949218750003Zm-3.612708984375 -3.612708984375c0 -0.20640234375000002 -0.16733203124999999 -0.37372265625 -0.37372851562500004 -0.37372851562500004 -1.2466875000000002 -0.0003984375 -2.025439453125 -1.350216796875 -1.4017558593750001 -2.42968359375 0.6236835937499999 -1.0794609375 2.1820429687500003 -1.07896875 2.805041015625 0.000890625 0.073001953125 0.12653906250000002 0.12854882812500001 0.26237109375 0.16512890625 0.40380468750000004 0.071923828125 0.278583984375 0.41845312500000004 0.374841796875 0.62375390625 0.17326171875 0.095279296875 -0.093556640625 0.133412109375 -0.2308359375 0.10003125 -0.36012890625000005C5.352029296875 2.147484375 3.158126953125 1.5357421875000001 1.856736328125 2.8110234375000003 0.827953125 3.819169921875 0.9305859375 5.504765624999999 2.074083984375 6.380642578125c-0.737044921875 0.275185546875 -1.3791269531249999 0.757013671875 -1.8493359375 1.38778125 -0.17261718750000002 0.23015625 -0.03134765625 0.56087109375 0.254279296875 0.5952832031249999 0.1325625 0.01597265625 0.263578125 -0.039990234375 0.3436875 -0.146806640625 0.632484375 -0.8502421875 1.631162109375 -1.3495839843750002 2.69084765625 -1.345423828125 0.206396484375 -0.00001171875 0.37372851562500004 -0.16733203124999999 0.37372851562500004 -0.37372851562500004Z' stroke-width='1'%3E%3C/path%3E%3C/svg%3E";
$invite_roles_active: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.5 -0.5 16 16' fill='currentColor' style='fill: %23008738;' id='Users-Three-Light--Streamline-Phosphor.svg' height='32' width='32'%3E%3Cdesc%3EUsers Three Light Streamline Icon: https://streamlinehq.com%3C/desc%3E%3Cpath d='M14.700509765625 8.291642578125002c-0.16512890625 0.12384375 -0.39938085937499995 0.090380859375 -0.523224609375 -0.0747421875 -0.632478515625 -0.8502421875 -1.631162109375 -1.3495839843750002 -2.69084765625 -1.345423828125 -0.2876953125 0 -0.467501953125 -0.311443359375 -0.32365429687499997 -0.5605957031250001 0.066755859375 -0.11562890625 0.19013671875000002 -0.186861328125 0.32365429687499997 -0.186861328125 1.2466875000000002 -0.00027539062500000003 2.02557421875 -1.3500234375000002 1.40199609375 -2.42954296875 -0.623578125 -1.079525390625 -2.1819375 -1.079185546875 -2.805041015625 0.000609375 -0.0731484375 0.126767578125 -0.12877734375 0.26285742187500005 -0.165369140625 0.40456640625 -0.071923828125 0.27858984375 -0.41845312500000004 0.374841796875 -0.62375390625 0.17326171875 -0.095279296875 -0.09355078125 -0.133412109375 -0.23083007812499998 -0.10003125 -0.36012304687499996 0.45373242187499996 -1.7646796875 2.6476347656250003 -2.376427734375 3.9490253906249997 -1.101140625 1.028783203125 1.008140625 0.926150390625 2.693736328125 -0.21734765625 3.569619140625 0.7369687500000001 0.275009765625 1.3790449218749998 0.75662109375 1.8493359375 1.387154296875 0.12384375 0.16512304687499998 0.090380859375 0.399375 -0.0747421875 0.5232187500000001Zm-3.38909765625 3.9989003906250002c0.1034296875 0.178705078125 0.042345703125 0.407419921875 -0.136412109375 0.51076171875 -0.056660156249999996 0.033210937499999996 -0.12118945312499999 0.050630859375 -0.1868671875 0.05044921875 -0.13360546874999998 0.000087890625 -0.257091796875 -0.07115624999999999 -0.32389453125 -0.186861328125 -1.422064453125 -2.409380859375 -4.907654296875 -2.409380859375 -6.32971875 0 -0.133353515625 0.254923828125 -0.49266210937499993 0.269888671875 -0.6467578125 0.02694140625 -0.077578125 -0.122314453125 -0.07749609375 -0.2784375 0.000205078125 -0.400669921875 0.509044921875 -0.8746171875 1.306072265625 -1.545263671875 2.2548339843750003 -1.897294921875 -1.849939453125 -1.2011367187500002 -1.70588671875 -3.95445703125 0.25929492187500003 -4.95598828125 1.9651816406249998 -1.0015253906250001 4.2776015625 0.49988671874999996 4.162359374999999 2.702548828125 -0.0479296875 0.916107421875 -0.531615234375 1.753875 -1.301021484375 2.253439453125 0.9461191406249999 0.35323242187500004 1.7405390625000001 1.02350390625 2.247978515625 1.896673828125ZM7.5 10.110457031249998c1.6302832031249999 0 2.649205078125 -1.76483203125 1.83406640625 -3.1766953125 -0.815138671875 -1.41186328125 -2.85298828125 -1.41186328125 -3.6681328125 0 -0.18587109375 0.32194921875 -0.283728515625 0.6871464843749999 -0.283728515625 1.0589003906249999 0 1.1696250000000001 0.9481699218749999 2.1177949218750003 2.1177949218750003 2.1177949218750003Zm-3.612708984375 -3.612708984375c0 -0.20640234375000002 -0.16733203124999999 -0.37372265625 -0.37372851562500004 -0.37372851562500004 -1.2466875000000002 -0.0003984375 -2.025439453125 -1.350216796875 -1.4017558593750001 -2.42968359375 0.6236835937499999 -1.0794609375 2.1820429687500003 -1.07896875 2.805041015625 0.000890625 0.073001953125 0.12653906250000002 0.12854882812500001 0.26237109375 0.16512890625 0.40380468750000004 0.071923828125 0.278583984375 0.41845312500000004 0.374841796875 0.62375390625 0.17326171875 0.095279296875 -0.093556640625 0.133412109375 -0.2308359375 0.10003125 -0.36012890625000005C5.352029296875 2.147484375 3.158126953125 1.5357421875000001 1.856736328125 2.8110234375000003 0.827953125 3.819169921875 0.9305859375 5.504765624999999 2.074083984375 6.380642578125c-0.737044921875 0.275185546875 -1.3791269531249999 0.757013671875 -1.8493359375 1.38778125 -0.17261718750000002 0.23015625 -0.03134765625 0.56087109375 0.254279296875 0.5952832031249999 0.1325625 0.01597265625 0.263578125 -0.039990234375 0.3436875 -0.146806640625 0.632484375 -0.8502421875 1.631162109375 -1.3495839843750002 2.69084765625 -1.345423828125 0.206396484375 -0.00001171875 0.37372851562500004 -0.16733203124999999 0.37372851562500004 -0.37372851562500004Z' stroke-width='1'%3E%3C/path%3E%3C/svg%3E";
43 changes: 43 additions & 0 deletions assets/css/pages/inviteRoles/inviteRoles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@import '../../helpers/functions';

.content__title {
color: $black;
}

.inviteRoles {
width: 100%;

&__container {
padding: 1rem;
width: 100%;
background-color: $white;
border-radius: 6px;
border: 1px solid $idpSeparatorGray;
margin-bottom: 1rem;
}

&__top{
display: flex;
}
&__bottom{
display: flex;
height: 3.5rem;
.button {
display:block;
margin-top: 1rem;
}
}
&__logo {
height: 90px;
min-width: 90px;
align-content: flex-start;
margin-right: 1rem;
img {
height: inherit;
}
}

&__launch {
margin-left: auto;
}
}
1 change: 1 addition & 0 deletions assets/css/pages/pages.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'home/home';
@import 'error/error';
@import 'inviteRoles/inviteRoles';
@import 'myConnections/myConnections';
@import 'myProfile/myProfile';
@import 'myServices/myServices';
Expand Down
8 changes: 8 additions & 0 deletions assets/css/shared/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,11 @@
background-image: url($connections_active);
}
}

.navigation__inviteRoles {
background-image: url($invite_roles);

&.active {
background-image: url($invite_roles_active);
}
}
50 changes: 50 additions & 0 deletions ci/qa/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,51 @@ parameters:
count: 1
path: ../../src/OpenConext/EngineBlockApiClient/Value/ConsentListFactory.php

-
message: "#^Call to an undefined method Traversable\\<mixed, OpenConext\\\\Profile\\\\Value\\\\InviteRole\\>\\:\\:getArrayCopy\\(\\)\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Cannot access offset 'description' on mixed\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Cannot access offset 'name' on mixed\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Cannot access offset mixed on mixed\\.$#"
count: 2
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Method OpenConext\\\\InviteApiClientBundle\\\\Tests\\\\Value\\\\InviteRoleListFactoryTest\\:\\:invalidDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Method OpenConext\\\\InviteApiClientBundle\\\\Tests\\\\Value\\\\InviteRoleListFactoryTest\\:\\:validDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Parameter \\#1 \\$data of static method OpenConext\\\\InviteApiClientBundle\\\\Value\\\\InviteRoleListFactory\\:\\:createList\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
count: 2
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Parameter \\#1 \\$exception of method PHPUnit\\\\Framework\\\\TestCase\\:\\:expectException\\(\\) expects class\\-string\\<Throwable\\>, string given\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Tests/Value/InviteRoleListFactoryTest.php

-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(array\\)\\: OpenConext\\\\Profile\\\\Value\\\\InviteRole given\\.$#"
count: 1
path: ../../src/OpenConext/InviteApiClientBundle/Value/InviteRoleListFactory.php

-
message: "#^Method OpenConext\\\\Profile\\\\Assert\\:\\:keysArePresent\\(\\) has parameter \\$array with no value type specified in iterable type array\\.$#"
count: 1
Expand Down Expand Up @@ -640,6 +685,11 @@ parameters:
count: 1
path: ../../src/OpenConext/Profile/Value/Entity.php

-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(string\\)\\: mixed\\)\\|null, Closure\\(array\\)\\: OpenConext\\\\Profile\\\\Value\\\\Application given\\.$#"
count: 1
path: ../../src/OpenConext/Profile/Value/InviteRole.php

-
message: "#^Class OpenConext\\\\Profile\\\\Value\\\\LocaleSet implements generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#"
count: 1
Expand Down
9 changes: 9 additions & 0 deletions config/openconext/parameters.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ parameters:

remove_consent_enabled: false

# Feature flag to display the OpenConext Invite roles assigned to the logged in user
invite_roles_enabled: false

# The Invite API credentials
invite_api_base_url: "https://invite.dev.openconext.local/api/external/"
invite_api_username: profile
invite_api_password: secret
invite_api_verify_ssl: true

# Session handler override
# Change to the following to use the database to store sessions:
#session_handler: 'Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler'
Expand Down
6 changes: 6 additions & 0 deletions config/packages/http-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ framework:
verify_host: '%attribute_aggregation_api_verify_ssl%'
verify_peer: '%attribute_aggregation_api_verify_ssl%'

invite_api_client:
base_uri: '%invite_api_base_url%'
auth_basic: '%invite_api_username%:%invite_api_password%'
verify_host: '%invite_api_verify_ssl%'
verify_peer: '%invite_api_verify_ssl%'

1 change: 1 addition & 0 deletions config/packages/open_conext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ open_conext_profile:
# The Url where the attribute can be connected
connect_url: '%attribute_aggregation_orcid_connect_url%'
remove_consent_enabled: '%remove_consent_enabled%'
invite_roles_enabled: '%invite_roles_enabled%'
Loading

0 comments on commit ca31411

Please sign in to comment.