-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encrypt the oauth client secrets #446
Conversation
7d4bd5f
to
46ef426
Compare
check versions of nc add migration step update version and extensions try running qb disable migration enable migration enable migration enable migration enable migration enable migration remove migration add more version checks add more version checks add migration add migration add extension don't show secrets update unit tests fix api test fix api test Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
46ef426
to
c5eca7f
Compare
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
The api test realted to the files id endpoint keep failing with stable22 because for some reason activity app is not being downloaded https://github.com/nextcloud/integration_openproject/actions/runs/5690981026/job/15425312895#step:16:157 In this run https://github.com/nextcloud/integration_openproject/actions/runs/5691122946 I removed the stable22 for api tests to be sure that tests are passing for other stable versions. If the CI is green for that one I'll bring back the stable22 and if the CI is red we might need to merge with red CI, as I don't see any other solution to fix the activity app not being enabled for stable 22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
This is the run where all the unit test passed https://github.com/nextcloud/integration_openproject/actions/runs/5689688522 This is the run where all the api tests passed https://github.com/nextcloud/integration_openproject/actions/runs/5688758938 The do pass |
JS Code CoverageCoverage after merging encrypt-the-oauth-client-secrets into release/2.3 will be
Coverage Report
|
The CI errors are unrelated to this PR, it's because the activity app is not installed for stable 22, it gets downloaded sometimes other times not(this is more of a problem with the dev container that we are using). I cannot make all the pipelines pass in a single run but they do pass. I'm merging this PR to unblock the release |
* Encrypt the OAuth2 client secrets check versions of nc add migration step update version and extensions try running qb disable migration enable migration enable migration enable migration enable migration enable migration remove migration add more version checks add more version checks add migration add migration add extension don't show secrets update unit tests fix api test fix api test Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * remove stable22 from api test Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * bring back stable22 for api test Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> --------- Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Description
The server implemented the feature to encrypt the oauth client secret in nextcloud/server#38398
but these changes were not adapted to our app so the OAuth connection wasn't successful from the open project side.
As this feature is only available from the nextcloud
>= 25.0.8
>= 26.0.4
>= 27.0.1
So the necessary check to ensure the version of the server is made.
Also the client secret is displayed only once now, right after it's created.
Related workpackage
OP#49416 - https://community.openproject.org/projects/nextcloud-integration/work_packages/49416