@@ -11,8 +11,8 @@ The need for this smoke testing (manual) is that we do not have e2e test setup t
11
11
12
12
- [ Section A: Two-Way OAuth 2.0 Authorization Code Flow] ( #section-a-two-way-oauth-20-authorization-code-flow )
13
13
- [ Section B: Single-Sign-On through OpenID Connect Identity Provider] ( #section-b-single-sign-on-through-openid-connect-identity-provider )
14
- - [ Section 1: Nextcloud Hub] ( #section-1 -nextcloud-hub )
15
- - [ Section 2: External Provider] ( #section-2 -External-Provider )
14
+ - [ Section B. 1: Nextcloud Hub] ( #section-B1 -nextcloud-hub )
15
+ - [ Section B. 2: External Provider] ( #section-B2 -External-Provider )
16
16
17
17
- [ Common Smoke Test Steps] ( #common-smoke-test-steps )
18
18
- [ 1. Link/Unlink a work package for a file/folder in Nextcloud] ( #1-linkunlink-a-work-package-for-a-filefolder-in-nextcloud )
@@ -92,9 +92,9 @@ bash integration_setup.sh
92
92
93
93
## Section B: Single-Sign-On through OpenID Connect Identity Provider
94
94
95
- ## Section 1: Nextcloud Hub
95
+ ### Section B. 1: Nextcloud Hub
96
96
97
- ### B1 . Configure Nextcloud (IdP Setup)
97
+ #### B.1.1 . Configure Nextcloud (IdP Setup)
98
98
- [ ] In Nextcloud, install and enable ` oidc ` and ` user_oidc ` apps.
99
99
- [ ] Create a new user( with username, display name, password, and email)
100
100
- [ ] Run following command:
@@ -109,7 +109,7 @@ bash integration_setup.sh
109
109
- Save
110
110
- Copy the Client ID and Client secret (you will need these later in OpenProject and integration_openproject)
111
111
112
- ### B2 . Add Nextcloud IDP in OpenProject
112
+ #### B.1.2 . Add Nextcloud IDP in OpenProject
113
113
- [ ] In OpenProject, go to ` Administration > Authentication > OpenID providers `
114
114
- [ ] Add a new custom OpenID provider:
115
115
- Display name: ` nextcloud ` (use this name as redirect URL in Nextcloud: <idp-displayname-from-OP >)
@@ -120,43 +120,43 @@ bash integration_setup.sh
120
120
- [ ] Select the file storage type called Nextcloud (created earlier in previous test)
121
121
- [ ] Under ` OAuth configuration ` , select ` Use access token obtained during user log in `
122
122
123
- ### B3 . Setup integration (Without project folder setup)
124
- - [ ] Complete step [ Test No B1 ] ( #b1 -Configure-Nextcloud-IdP-Setup ) .
125
- - [ ] Complete step [ Test No B2 ] ( #b2 -Add-Nextcloud-Idp-in-OpenProject ) .
123
+ #### B.1.3 . Setup integration (Without project folder setup)
124
+ - [ ] Complete step [ Test No B.1.1 ] ( #B11 -Configure-Nextcloud-IdP-Setup ) .
125
+ - [ ] Complete step [ Test No B.1.2 ] ( #B12 -Add-Nextcloud-Idp-in-OpenProject ) .
126
126
- [ ] In nextcloud, go to ` Administration > OpenProject ` .
127
127
- [ ] Under ` Authentication Method ` , select ` Single-Sign-On through OpenID Connect Identity Provider ` .
128
128
- [ ] In ` Authentication settings ` , select ` provider Type ` as ` Nextcloud Hub ` .
129
129
- [ ] Set Openproject ` client ID ` by Client ID copied earlier in ** Test No B1** .
130
130
131
- ### B4 . Login to OpenProject using Nextcloud user
132
- - [ ] Complete step [ Test No B1 ] ( #b1 -Configure-Nextcloud-IdP-Setup )
133
- - [ ] Complete step [ Test No B2 ] ( #b2 -Add-Nextcloud-Idp-in-OpenProject ) .
134
- - [ ] Complete step [ Test No B3 ] ( #b3 -Setup-integration-Without-project-folder-setup ) .
131
+ #### B.1.4 . Login to OpenProject using Nextcloud user
132
+ - [ ] Complete step [ Test No B.1.1 ] ( #B11 -Configure-Nextcloud-IdP-Setup )
133
+ - [ ] Complete step [ Test No B.1.2 ] ( #B12 -Add-Nextcloud-Idp-in-OpenProject ) .
134
+ - [ ] Complete step [ Test No B.1.3 ] ( #b13 -Setup-integration-Without-project-folder-setup ) .
135
135
- [ ] In ` nextcloud ` , login as nextcloud-created user.
136
136
- [ ] In ` openproject ` , use the SSO button on the login page to sign in as the nextcloud-created user.
137
137
- [ ] Login should be successful in ` openproject ` .
138
138
- [ ] Login should be successful in ` openproject ` with username having created-nextcloud user's display name.
139
139
- [ ] The OpenProject username must match the Nextcloud-created user’s name.
140
140
141
- ### B5 . Verify Connection of Nextcloud user with OpenProject
142
- - [ ] Complete step [ Test No B1 ] ( #b1 -Configure-Nextcloud-IdP-Setup ) .
143
- - [ ] Complete step [ Test No B2 ] ( #b2 -Add-Nextcloud-Idp-in-OpenProject ) .
144
- - [ ] Complete step [ Test No B3 ] ( #b3 -Setup-integration-Without-project-folder-setup ) .
145
- - [ ] Complete step [ Test No B4 ] ( #b4 -Login-to-OpenProject-using-Nextcloud-user ) .
141
+ #### B.1.5 . Verify Connection of Nextcloud user with OpenProject
142
+ - [ ] Complete step [ Test No B.1.1 ] ( #B11 -Configure-Nextcloud-IdP-Setup ) .
143
+ - [ ] Complete step [ Test No B.1.2 ] ( #B12 -Add-Nextcloud-Idp-in-OpenProject ) .
144
+ - [ ] Complete step [ Test No B.1.3 ] ( #b13 -Setup-integration-Without-project-folder-setup ) .
145
+ - [ ] Complete step [ Test No B.1.4 ] ( #b14 -Login-to-OpenProject-using-Nextcloud-user ) .
146
146
- [ ] In nextcloud, login as nextcloud-created user.
147
147
- [ ] Navigate to ` Settings > Openproject `
148
148
- [ ] Should show user is connected as an OpenProject user.
149
149
150
- ### B6 . Complete the common smoke tests
150
+ #### B.1.6 . Complete the common smoke tests
151
151
- [ ] Complete [ smoke tests 1-6] ( #common-smoke-test-steps ) .
152
152
153
- ## Section 2: External Provider
153
+ ### Section B. 2: External Provider
154
154
> Here keycloak is an External Provider
155
155
156
- ### B7 . Configure Keycloak (IdP Setup)
156
+ #### B.2.1 . Configure Keycloak (IdP Setup)
157
157
- [ ] Set up Keycloak using this guide: [ Keycloak Setup] ( https://www.openproject-edge.com/docs/system-admin-guide/integrations/nextcloud/oidc-sso/#keycloak )
158
158
159
- ### B8 . Configure Nextcloud (Client)
159
+ #### B.2.2 . Configure Nextcloud (Client)
160
160
- [ ] In ** nextcloud** , go to ` Administration > OpenID Connect ` .
161
161
- [ ] Enable ` store login tokens ` options.
162
162
- [ ] Register a new providers with following data:
@@ -170,7 +170,7 @@ bash integration_setup.sh
170
170
- [ ] Login Should be successful
171
171
- [ ] Logout
172
172
173
- ### B9 . Add Keycloak IDP in OpenProject
173
+ #### B.2.3 . Add Keycloak IDP in OpenProject
174
174
- [ ] In ** OpenProject** , go to ` Administration > Authentication > OpenID providers `
175
175
- [ ] Add a new custom OpenID provider:
176
176
- Display name: ` keycloak `
@@ -181,47 +181,47 @@ bash integration_setup.sh
181
181
- [ ] Log out, then Login as admin in ` Openproject ` .
182
182
- [ ] As an ` OpenProject ` admin, add keycloak-created user as a member in one of the project.
183
183
184
- ### B10 . Setup integration (token exchange disabled)
184
+ #### B.2.4 . Setup integration (token exchange disabled)
185
185
- [ ] In nextcloud, go to ` Administration > OpenProject ` .
186
186
- [ ] Under ` Authentication Method ` , select ` Single-Sign-On through OpenID Connect Identity Provider ` .
187
187
- [ ] In ` Authentication settings ` , select ` provider Type ` as ` Keycloak ` .
188
188
- [ ] Disable ` token exchange `
189
189
190
- ### B11 . Verify Connection in nextcloud
191
- - [ ] Complete step [ Test No B7 ] ( #b7 -Configure-Keycloak-IdP-Setup ) .
192
- - [ ] Complete step [ Test No B8 ] ( #b8 -Configure-Nextcloud-Client ) .
193
- - [ ] Complete step [ Test No B9 ] ( #b9 -Add-Keycloak-IDP-in-OpenProject ) .
194
- - [ ] Complete step [ Test No B10 ] ( #b10 -Setup-integration-token-exchange-disabled ) .
190
+ #### B.2.5 . Verify Connection in nextcloud
191
+ - [ ] Complete step [ Test No B.2.1 ] ( #b21 -Configure-Keycloak-IdP-Setup ) .
192
+ - [ ] Complete step [ Test No B.2.2 ] ( #b22 -Configure-Nextcloud-Client ) .
193
+ - [ ] Complete step [ Test No B.2.3 ] ( #b23 -Add-Keycloak-IDP-in-OpenProject ) .
194
+ - [ ] Complete step [ Test No B.2.4 ] ( #b24 -Setup-integration-token-exchange-disabled ) .
195
195
- [ ] In nextcloud, login as keycloak-created user.
196
196
- [ ] Navigate to ` Settings > Openproject `
197
197
- [ ] Should show user is connected as an OpenProject user.
198
198
199
- ### B12 . Complete the common smoke tests
199
+ #### B.2.6 . Complete the common smoke tests
200
200
- [ ] Complete [ smoke tests 1-6] ( #common-smoke-test-steps ) .
201
201
202
- ### B13 .Setup integration (token exchange enabled)
203
- - [ ] Complete step [ Test No B7 ] ( #b7 -Configure-Keycloak-IdP-Setup ) .
204
- - [ ] Complete step [ Test No B8 ] ( #b8 -Configure-Nextcloud-Client ) .
205
- - [ ] Complete step [ Test No B9 ] ( #b9 -Add-Keycloak-IDP-in-OpenProject ) .
202
+ #### B.2.7 .Setup integration (token exchange enabled)
203
+ - [ ] Complete step [ Test No B.2.1 ] ( #b21 -Configure-Keycloak-IdP-Setup ) .
204
+ - [ ] Complete step [ Test No B.2.2 ] ( #b22 -Configure-Nextcloud-Client ) .
205
+ - [ ] Complete step [ Test No B.2.3 ] ( #b23 -Add-Keycloak-IDP-in-OpenProject ) .
206
206
- [ ] Go to ` Administration > OpenProject ` in nextcloud
207
207
- [ ] Under ` Authentication Method ` , select ` Single-Sign-On through OpenID Connect Identity Provider `
208
208
- [ ] In ` Authentication settings ` , select ` provider Type ` as ` Keycloak `
209
209
- [ ] Enable ` token exchange `
210
210
- [ ] Set ` OpenProject client ID * ` as ` Openproject `
211
211
212
- ### B14 . Verify Connection in nextcloud
213
- - [ ] Complete step [ Test No B7 ] ( #b7 -Configure-Keycloak-IdP-Setup ) .
214
- - [ ] Complete step [ Test No B8 ] ( #b8 -Configure-Nextcloud-Client ) .
215
- - [ ] Complete step [ Test No B9 ] ( #b9 -Add-Keycloak-IDP-in-OpenProject ) .
216
- - [ ] Complete step [ Test No B11 ] ( #b11 -Verify-Connection-in-nextcloud ) .
212
+ #### B.2.8 . Verify Connection in nextcloud
213
+ - [ ] Complete step [ Test No B.2.1 ] ( #b21 -Configure-Keycloak-IdP-Setup ) .
214
+ - [ ] Complete step [ Test No B.2.2 ] ( #b22 -Configure-Nextcloud-Client ) .
215
+ - [ ] Complete step [ Test No B.2.3 ] ( #b23 -Add-Keycloak-IDP-in-OpenProject ) .
216
+ - [ ] Complete step [ Test No B.2.5 ] ( #b25 -Verify-Connection-in-nextcloud ) .
217
217
- [ ] In nextcloud, login as keycloak-created user.
218
218
- [ ] Navigate to ` settings > Openproject `
219
219
- [ ] Should show user is connected as an OpenProject user.
220
220
221
- ### B15 . Complete the common smoke tests
221
+ #### B.2.9 . Complete the common smoke tests
222
222
- [ ] Complete [ smoke tests 1-6] ( #common-smoke-test-steps ) .
223
223
224
- ### B16 . Check the integration script for sso setup (Nextcloud Hub)
224
+ #### B.2.10 . Check the integration script for sso setup (Nextcloud Hub)
225
225
226
226
> Before Running the script make sure that your ` Nextcloud ` and ` OpenProject ` instance is up and running
227
227
> If you're using Nextcloud as the Identity Provider (OIDC), make sure the following apps are installed and enabled in Nextcloud:
@@ -234,8 +234,8 @@ bash integration_setup.sh
234
234
>
235
235
> To add the Nextcloud storage, delete the 'nextcloud' file storage from OpenProject, reset the Nextcloud config, and run the script again.
236
236
237
- - [ ] Complete step [ Test No B1 ] ( #b1 -Configure-Nextcloud-IdP-Setup ) (only the first , second and thrid steps are required).
238
- - [ ] Complete step [ Test No B2 ] ( #b2 -Add-Nextcloud-Idp-in-OpenProject ) (only the first and second steps are required).
237
+ - [ ] Complete step [ Test No B.1.1 ] ( #B11 -Configure-Nextcloud-IdP-Setup ) (only the first , second and thrid steps are required).
238
+ - [ ] Complete step [ Test No B.1.2 ] ( #B12 -Add-Nextcloud-Idp-in-OpenProject ) (only the first and second steps are required).
239
239
- [ ] Run the ` integration_oidc_setup.sh ` script to set up integration without project folder with the following command:
240
240
241
241
``` bash
@@ -253,20 +253,20 @@ OP_USE_LOGIN_TOKEN=true \
253
253
bash integration_oidc_setup.sh
254
254
```
255
255
256
- - [ ] Upon success, try step [ Test No B4 ] ( #b4 -Login-to-OpenProject-using-Nextcloud-user ) .
257
- - [ ] Upon success, try step [ Test No B5 ] ( #b5 -Verify-Connection-of-Nextcloud-user-with-OpenProject ) .
256
+ - [ ] Upon success, try step [ Test No B.1.4 ] ( #b14 -Login-to-OpenProject-using-Nextcloud-user ) .
257
+ - [ ] Upon success, try step [ Test No B.1.5 ] ( #b15 -Verify-Connection-of-Nextcloud-user-with-OpenProject ) .
258
258
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
259
259
- [ ] In nextcloud, delete the ` OpenProject ` user, group and team folder from the nextcloud (if they exist).
260
260
- [ ] Then, reset the Nextcloud config.
261
261
- [ ] set environment ` SETUP_PROJECT_FOLDER=true ` and run the script.
262
262
- [ ] Run the script again after it is already setup (Should not give any error).
263
263
264
- ### Check the integration script for sso setup (External provider without token exchange)
264
+ #### Check the integration script for sso setup (External provider without token exchange)
265
265
> Before running the script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the integration settings in Nextcloud.
266
266
267
- - [ ] Complete step [ Test No B7 ] ( #B7 -Configure-Keycloak-IdP-Setup ) .
268
- - [ ] Complete step [ Test No B8 ] ( #B8 -Configure-Nextcloud-Client ) .
269
- - [ ] Complete step [ Test No B9 ] ( #b9 -Add-Keycloak-IDP-in-OpenProject ) .
267
+ - [ ] Complete step [ Test No B.2.1 ] ( #b21 -Configure-Keycloak-IdP-Setup ) .
268
+ - [ ] Complete step [ Test No B.2.2 ] ( #b22 -Configure-Nextcloud-Client ) .
269
+ - [ ] Complete step [ Test No B.2.3 ] ( #b23 -Add-Keycloak-IDP-in-OpenProject ) .
270
270
- [ ] Run the ` integration_oidc_setup.sh ` script to set up integration without project folder with the following command:
271
271
272
272
``` bash
@@ -288,20 +288,20 @@ bash integration_oidc_setup.sh
288
288
289
289
```
290
290
291
- - [ ] Upon success, try step [ Test No B11 ] ( #B11 -Verify-Connection-in-nextcloud ) .
291
+ - [ ] Upon success, try step [ Test No B.2.5 ] ( #B25 -Verify-Connection-in-nextcloud ) .
292
292
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
293
293
- [ ] In nextcloud, delete the ` OpenProject ` user, group and team folder from the nextcloud (if they exist).
294
294
- [ ] Then, reset the Nextcloud config.
295
295
- [ ] set environment ` SETUP_PROJECT_FOLDER=true ` and run the script.
296
296
- [ ] Run the script again after it is already setup (Should not give any error).
297
297
298
298
299
- ### Check the integration script for sso setup (External provider with token exchange)
299
+ #### Check the integration script for sso setup (External provider with token exchange)
300
300
> Before Running the below script make sure that you delete the 'nextcloud' file storage from OpenProject and reset the Nextcloud config.
301
301
302
- - [ ] Complete step [ Test No B7 ] ( #B7 -Configure-Keycloak-IdP-Setup ) .
303
- - [ ] Complete step [ Test No B8 ] ( #B8 -Configure-Nextcloud-Client ) .
304
- - [ ] Complete step [ Test No B9 ] ( #b9 -Add-Keycloak-IDP-in-OpenProject ) .
302
+ - [ ] Complete step [ Test No B.2.1 ] ( #b21 -Configure-Keycloak-IdP-Setup ) .
303
+ - [ ] Complete step [ Test No B.2.2 ] ( #b22 -Configure-Nextcloud-Client ) .
304
+ - [ ] Complete step [ Test No B.2.3 ] ( #b23 -Add-Keycloak-IDP-in-OpenProject ) .
305
305
- [ ] Run the ` integration_oidc_setup.sh ` script to set up integration without project folder with the following command:
306
306
307
307
``` bash
@@ -322,7 +322,7 @@ OP_STORAGE_AUDIENCE=nextcloud \
322
322
bash integration_oidc_setup.sh
323
323
```
324
324
325
- - [ ] Upon success, try step [ Test No B14 ] ( #B14 -Verify-Connection-in-nextcloud ) .
325
+ - [ ] Upon success, try step [ Test No B.2.8 ] ( #B28 -Verify-Connection-in-nextcloud ) .
326
326
- [ ] Also, to set up the integration configuration with project folder setup, at first delete 'nextcloud' file storage from OpenProject.
327
327
- [ ] In nextcloud, delete the ` OpenProject ` user, group and team folder from the nextcloud (if they exist).
328
328
- [ ] Then, reset the Nextcloud config.
0 commit comments