Skip to content

Commit c118074

Browse files
committed
WIP for #360
1 parent 8866228 commit c118074

18 files changed

Lines changed: 348 additions & 232 deletions

client/src/api/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ export function allAplicationsByOrganisationLight(organizationId) {
217217
return fetchJson(`/api/v1/applications/all/light/${organizationId}`);
218218
}
219219

220+
export function allAplicationsLight() {
221+
return fetchJson(`/api/v1/applications/all`);
222+
}
223+
220224
//Application memberships
221225
export function deleteApplicationMembershipById(applicationMembership) {
222226
return fetchDelete(`/api/v1/application_memberships/${applicationMembership.id}`);
@@ -227,7 +231,7 @@ export function createApplicationMembership(organizationMembershipId, applicatio
227231
return postPutJson("/api/v1/application_memberships", body, "POST");
228232
}
229233

230-
//Manage
234+
//ManageImport
231235
export function revokeChangeRequest(changeRequest) {
232236
return postPutJson("/api/v1/manage/reject-change-request", changeRequest, "PUT");
233237
}

client/src/connection/Testing.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ export const Testing = ({
956956
const profileInfo = I18n.translations[I18n.locale].connection.informational.profiles[profileName].info;
957957
const currentProfile = arpInfo.profiles.find(profile => profile.name === profileName);
958958
const isContentApp = application.type === "CONTENT";
959-
//These are the attributes added in Manage. We will show them as regular attributes
959+
//These are the attributes added in ManageImport. We will show them as regular attributes
960960
const extraAttributesOutsideBundle = connection.additionalAttributes.filter(attr => !currentProfile.optionalAttributes.includes(attr));
961961
const allAttributes = currentProfile.attributes.concat(extraAttributesOutsideBundle);
962962
const scopeValuesPresent = allAttributes.some(name => arpInfo.attributes.find(attr => attr.name === name).scopedValue)

client/src/locale/en.js

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ const en = {
7777
accessibleApps: "Enabled apps",
7878
yourApps: "Our apps",
7979
catalogue: "All other apps",
80-
externalMaintenance: "Manage access options",
80+
externalMaintenance: "ManageImport access options",
8181
invite: "Roles",
8282
sram: "Collaborative groups",
8383
allApps: "All apps",
84-
organizationMaintenance: "Manage organisation",
84+
organizationMaintenance: "ManageImport organisation",
8585
idp: "My organisation",
8686
users: "SURF Access users",
8787
applications: "Applications",
@@ -93,9 +93,9 @@ const en = {
9393
tooltips: {
9494
users: "",
9595
idp: "",
96-
yourApps: "Manage the technical connection and metadata of your apps.",
96+
yourApps: "ManageImport the technical connection and metadata of your apps.",
9797
catalogue: "Discover apps that aren't yet connected.",
98-
accessibleApps: "Manage access to enabled applications",
98+
accessibleApps: "ManageImport access to enabled applications",
9999
roles: "",
100100
collaborations: "",
101101
serviceDesk: "",
@@ -116,7 +116,8 @@ const en = {
116116
users: "Users",
117117
organizations: "Organizations",
118118
organizationPendingApproval: "Pending approval",
119-
manage: "Manage"
119+
import: "import",
120+
migrate: "migrate"
120121
},
121122
welcome: {
122123
greeting: "Welcome {{name}}",
@@ -144,34 +145,34 @@ const en = {
144145
backToLandingLink: " create your own organisation.",
145146
central: {
146147
title: "Central access management",
147-
subTitle: "Manage access to enabled applications",
148+
subTitle: "ManageImport access to enabled applications",
148149
connectedApps: "enabled apps",
149150
connectedAppsInfo: "The apps that are linked to our IdP",
150-
maintainAccess: "Manage access",
151+
maintainAccess: "ManageImport access",
151152
roles: "Access roles",
152-
maintainRoles: "Manage roles",
153+
maintainRoles: "ManageImport roles",
153154
teamCentral: "Central team",
154155
you: "You",
155156
responsible: "Responsible: <a href='mailto:{{mail}}'>{{name}}</a>",
156-
maintainTeam: "Manage team",
157+
maintainTeam: "ManageImport team",
157158
},
158159
catalogue: {
159160
title: "SURF Access catalog",
160-
subTitle: "Manage your own apps and find new ones",
161+
subTitle: "ManageImport your own apps and find new ones",
161162
ourApps: "Our apps",
162163
ourAppsInfo: "The apps we offer ourselves on SURF Access",
163-
maintainOurApps: "Manage our apps",
164+
maintainOurApps: "ManageImport our apps",
164165
allApps: "All other apps",
165166
openCatalogue: "Open the SURF app catalog"
166167
},
167168
decentral: {
168169
title: "Decentralised access management",
169170
subTitle: "Delegate member management and application access to collaborative groups.",
170171
collaborations: "Collaborative groups",
171-
maintainCollaborations: "Manage collaborative groups",
172+
maintainCollaborations: "ManageImport collaborative groups",
172173
teamDecentral: "Decentral team",
173174
responsible: "responsible: <a href='mailto:{{email}}'>{{name}}</a>",
174-
maintainTeamDecentral: "Manage team"
175+
maintainTeamDecentral: "ManageImport team"
175176
},
176177
tip: {
177178
info: "Tips from SURF when setting up access",
@@ -188,7 +189,8 @@ const en = {
188189
invitations: "Invitations",
189190
access: "Access",
190191
information: "App information",
191-
manage: "Manage"
192+
import: "ManageImport",
193+
migrate: "App migration"
192194
},
193195
joinRequest: {
194196
info: "You do not have access to <strong>{{name}}</strong>'s environment. You can request access from the administrator.",
@@ -224,7 +226,7 @@ const en = {
224226
status: "Status",
225227
searchPlaceHolder: "Search for organisations...",
226228
confirmation: "Are you sure you want to change the status to <strong>{{status}}</strong> for organisation {{name}}?",
227-
manageOrganizationInMutable: "Internal organisations (e.g. IdP's from Manage) are immutable in SURF Access. Only external organisations from external (commercial) service providers are mutable.",
229+
manageOrganizationInMutable: "Internal organisations (e.g. IdP's from ManageImport) are immutable in SURF Access. Only external organisations from external (commercial) service providers are mutable.",
228230
flash: {
229231
updated: "Organisation {{name}} now has the status {{status}}",
230232
deleted: "Organisation {{name}} has been deleted",
@@ -324,7 +326,7 @@ const en = {
324326
team: {
325327
name: "Team",
326328
info: "Give team members or external users access to manage this app",
327-
members: "Manage team members"
329+
members: "ManageImport team members"
328330
},
329331
production: {
330332
name: "Production",
@@ -820,7 +822,7 @@ const en = {
820822
eduid: "EduID Identity Provider",
821823
idp: "Your IdP",
822824
invite: "SURF Invite",
823-
manage: "SURF Manage",
825+
manage: "SURF ManageImport",
824826
orcid: "ORCID organisation",
825827
sabrest: "SURF SAB",
826828
voot: "SURF Memberships",
@@ -885,6 +887,7 @@ const en = {
885887
profile: "profile",
886888
attributes: "attribute",
887889
motivation: "motivation",
890+
allowedall: "Allowed all",
888891
refreshTokenValidity: "Refresh token validity in seconds",
889892
visible_to_all: "All organisations",
890893
visible_to_none: "No one (hide the app for now)",
@@ -968,7 +971,7 @@ const en = {
968971
myOrganization: {
969972
title: "My organisation",
970973
info: "To view other information about your organisation, visit <a target='_blank' href='https://mijn.surf.nl'>mijn.surf.nl</a>",
971-
maintenance: "Manage {{name}}",
974+
maintenance: "ManageImport {{name}}",
972975
contactPersons: "Contacts",
973976
general: "General information",
974977
delete: "Delete organisation",
@@ -1160,11 +1163,11 @@ const en = {
11601163
regTitle: "Authorization policy",
11611164
regInfo: "Controls which users can access an application.",
11621165
regChoice: "Choose Authorization policy if:",
1163-
regExplanation:"→ You need to decide which users or groups get access to an application",
1166+
regExplanation: "→ You need to decide which users or groups get access to an application",
11641167
stepTitle: "Step-up policy",
11651168
stepInfo: "Defines the required Level of Assurance (LoA) for access to an application.",
11661169
stepChoice: "Choose Step-up authentication policy if:",
1167-
stepExplanation:"→ Users may access the application, but must log in with a higher LoA or MFA"
1170+
stepExplanation: "→ Users may access the application, but must log in with a higher LoA or MFA"
11681171
},
11691172
negateApplication: "Select <strong>Negate selection</strong> to apply this policy to all service providers except the ones you chose.",
11701173
},
@@ -1174,35 +1177,43 @@ const en = {
11741177
type: "Entity type",
11751178
oidc10_rp: "OIDC Relying Party",
11761179
saml20_sp: "SAML Service Provider",
1177-
searchPlaceHolder: "Search for Manage entities",
1180+
searchPlaceHolder: "Search for ManageImport entities",
11781181
notFound: "Nothing found"
11791182
},
11801183
manageDetail: {
11811184
backToSystem: "← Back to manage apps",
11821185
importAsNewApplication: "Import as new application",
11831186
importAsNewConnection: "Import as new connection",
1184-
migrate: "Migrate",
1187+
import: "Import",
11851188
notInAccess: "This entity is not known in Access. You can import it by choosing first an organisation. " +
11861189
"Then choose either an existing application from this organization, or import this entity as a new application.",
1187-
inAccess: "This entity from Manage is a connection named <strong>{{connection}}</strong> in the application <strong>{{application}}</strong>" +
1188-
" in the organisation <strong>{{organisation}}</strong>. You can migrate the application <strong>{{application}}</strong> to a different organisation.",
1190+
inAccess: "This entity from Manage is an Access connection named <strong>{{connection}}</strong> in the application <strong>{{application}}</strong>" +
1191+
" in the organisation <strong>{{organisation}}</strong>. There is nothing to import.",
11891192
chooseOrganisation: "Choose an organisation",
1190-
chooseOrganisationPlaceholder: "Find and choose an organisation to migrate the application",
11911193
chooseImportOrganisationPlaceholder: "Find and choose an organisation to import this entity",
11921194
chooseApplication: "Find and choose an application",
11931195
chooseApplicationPlaceholder: "Optional: find and choose an application",
1194-
migrateConfirmation: "Are you absolutely sure you want to migrate application <strong>{{application}}</strong> from the current " +
1195-
"organisation <strong>{{organisation}}</strong> to the new organisation <strong>{{newOrganisation}}</strong>?",
11961196
impportApplicationConfirmation: "Are you absolutely sure you want to import entity <strong>{{entity}}</strong> in to " +
11971197
"organisation <strong>{{organisation}}</strong> as a new application?",
11981198
impportConnectionConfirmation: "Are you absolutely sure you want to import entity <strong>{{entity}}</strong> in to " +
11991199
"organisation <strong>{{organisation}}</strong> as a new connection of application {{application}}?",
12001200
flash: {
12011201
migrated: "Application {{application}} has been migrated to organisation {{organisation}}",
1202-
imported: "Entity {{entity}} has been imported into organisation {{organisation}}"
12031202
}
1204-
1205-
1203+
},
1204+
applicationMigrate: {
1205+
migrate: "Migrate",
1206+
findApplicationInfo: "An app migration is only changing the organisation name in the Manage metadata and changing the database " +
1207+
"reference. If contracts need to be changed please refer to SURF klant support",
1208+
findApplication: "Find an application to migrate",
1209+
findApplicationPlaceholder: "Find and select an application...",
1210+
chooseOrganisation: "Choose the target organisation",
1211+
chooseOrganisationPlaceholder: "Find and select an organisation to migrate the application to...",
1212+
migrateConfirmation: "Are you absolutely sure you want to migrate application <strong>{{application}}</strong> from its current " +
1213+
"organisation <strong>{{organisation}}</strong> to the new organisation <strong>{{newOrganisation}}</strong>?",
1214+
flash: {
1215+
migrated: "Application {{application}} has been migrated to organisation {{organisation}}",
1216+
}
12061217
}
12071218

12081219
}

client/src/locale/nl.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ const nl = {
7777
accessibleApps: "Enabled apps",
7878
yourApps: "Our apps",
7979
catalogue: "All other apps",
80-
externalMaintenance: "Manage access options",
80+
externalMaintenance: "ManageImport access options",
8181
invite: "Roles",
8282
sram: "Collaborative groups",
8383
allApps: "All apps",
84-
organizationMaintenance: "Manage organisation",
84+
organizationMaintenance: "ManageImport organisation",
8585
idp: "My organisation",
8686
users: "SURF Access users",
8787
applications: "Applications",
@@ -92,9 +92,9 @@ const nl = {
9292
tooltips: {
9393
users: "",
9494
idp: "",
95-
yourApps: "Manage the technical connection and metadata of your apps.",
95+
yourApps: "ManageImport the technical connection and metadata of your apps.",
9696
catalogue: "Discover apps that aren't yet connected.",
97-
accessibleApps: "Manage access to enabled applications",
97+
accessibleApps: "ManageImport access to enabled applications",
9898
roles: "",
9999
collaborations: "",
100100
serviceDesk: "",
@@ -142,34 +142,34 @@ const nl = {
142142
backToLandingLink: " create your own organisation.",
143143
central: {
144144
title: "Central access management",
145-
subTitle: "Manage access to enabled applications",
145+
subTitle: "ManageImport access to enabled applications",
146146
connectedApps: "enabled apps",
147147
connectedAppsInfo: "The apps that are linked to our IdP",
148-
maintainAccess: "Manage access",
148+
maintainAccess: "ManageImport access",
149149
roles: "Access roles",
150-
maintainRoles: "Manage roles",
150+
maintainRoles: "ManageImport roles",
151151
teamCentral: "Central team",
152152
you: "You",
153153
responsible: "Responsible: <a href='mailto:{{mail}}'>{{name}}</a>",
154-
maintainTeam: "Manage team",
154+
maintainTeam: "ManageImport team",
155155
},
156156
catalogue: {
157157
title: "SURF Access catalog",
158-
subTitle: "Manage your own apps and find new ones",
158+
subTitle: "ManageImport your own apps and find new ones",
159159
ourApps: "Our apps",
160160
ourAppsInfo: "The apps we offer ourselves on SURF Access",
161-
maintainOurApps: "Manage our apps",
161+
maintainOurApps: "ManageImport our apps",
162162
allApps: "All other apps",
163163
openCatalogue: "Open the SURF app catalog"
164164
},
165165
decentral: {
166166
title: "Decentralised access management",
167167
subTitle: "Delegate member management and application access to collaborative groups.",
168168
collaborations: "Collaborative groups",
169-
maintainCollaborations: "Manage collaborative groups",
169+
maintainCollaborations: "ManageImport collaborative groups",
170170
teamDecentral: "Decentral team",
171171
responsible: "responsible: <a href='mailto:{{email}}'>{{name}}</a>",
172-
maintainTeamDecentral: "Manage team"
172+
maintainTeamDecentral: "ManageImport team"
173173
},
174174
tip: {
175175
info: "Tips from SURF when setting up access",
@@ -220,7 +220,7 @@ const nl = {
220220
status: "Status",
221221
searchPlaceHolder: "Search for organisations...",
222222
confirmation: "Are you sure you want to change the status to <strong>{{status}}</strong> for organisation {{name}}?",
223-
manageOrganizationInMutable: "Internal organisations (e.g. IdP's from Manage) are immutable in SURF Access. Only external organisations from external (commercial) service providers are mutable.",
223+
manageOrganizationInMutable: "Internal organisations (e.g. IdP's from ManageImport) are immutable in SURF Access. Only external organisations from external (commercial) service providers are mutable.",
224224
flash: {
225225
updated: "Organisation {{name}} now has the status {{status}}",
226226
deleted: "Organisation {{name}} has been deleted",
@@ -319,7 +319,7 @@ const nl = {
319319
team: {
320320
name: "Team",
321321
info: "Give team members or external users access to manage this app",
322-
members: "Manage team members"
322+
members: "ManageImport team members"
323323
},
324324
production: {
325325
name: "Production",
@@ -815,7 +815,7 @@ const nl = {
815815
eduid: "EduID Identity Provider",
816816
idp: "Your IdP",
817817
invite: "SURF Invite",
818-
manage: "SURF Manage",
818+
manage: "SURF ManageImport",
819819
orcid: "ORCID organisation",
820820
sabrest: "SURF SAB",
821821
voot: "SURF Memberships",
@@ -964,7 +964,7 @@ const nl = {
964964
myOrganization: {
965965
title: "My organisation",
966966
info: "To view other information about your organisation, visit <a target='_blank' href='https://mijn.surf.nl'>mijn.surf.nl</a>",
967-
maintenance: "Manage {{name}}",
967+
maintenance: "ManageImport {{name}}",
968968
contactPersons: "Contacts",
969969
general: "General information",
970970
delete: "Delete organisation",

0 commit comments

Comments
 (0)