Skip to content

Commit c3c2cb6

Browse files
committed
Add security config for the new '/about' endpoint
1 parent cce8b4e commit c3c2cb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/kotlin/com/cosmotech/api/security/AbstractSecurityConfiguration.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ internal fun endpointSecurityReaders(
162162
customOrganizationViewer: String
163163
) =
164164
listOf(
165+
CsmSecurityEndpointsRolesReader(
166+
paths = listOf("/about"),
167+
roles =
168+
arrayOf(
169+
ROLE_ORGANIZATION_USER,
170+
ROLE_ORGANIZATION_VIEWER,
171+
customOrganizationUser,
172+
customOrganizationViewer),
173+
customAdmin = customOrganizationAdmin),
165174
CsmSecurityEndpointsRolesReader(
166175
paths = PATHS_CONNECTORS,
167176
roles =

0 commit comments

Comments
 (0)