This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-samples.git
commit 068a0b43eda5b99756383931d19cbbc9ff909b6f Author: Robert Munteanu <[email protected]> AuthorDate: Fri Oct 11 16:56:40 2024 +0200 chore(oauth): configure commons.crypto, now required by Sling OAuth client --- oauth/launcher/Makefile | 5 ++++- oauth/launcher/src/main/features/launcher.json | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/oauth/launcher/Makefile b/oauth/launcher/Makefile index 5a11b0f..a59955c 100644 --- a/oauth/launcher/Makefile +++ b/oauth/launcher/Makefile @@ -28,7 +28,10 @@ secrets/github/clientId: secrets/github/clientSecret: @echo [WARN] $@ missing, OAuth config needs to be created manually -run: target/dependency/org.apache.sling.feature.launcher/bin/launcher secrets/google/clientId secrets/google/clientSecret +secrets/encrypt/password: + pwgen -s 32 1 > $@ + +run: target/dependency/org.apache.sling.feature.launcher/bin/launcher secrets/google/clientId secrets/google/clientSecret secrets/encrypt/password @echo '-------------------------------------------------------------------------------------------' @echo '[NOTE] Launching application, this will fail if you did not build the project at least once' @echo '[NOTE] Remove the launcher folder to throw away local changes' diff --git a/oauth/launcher/src/main/features/launcher.json b/oauth/launcher/src/main/features/launcher.json index 11e450a..1917bbf 100644 --- a/oauth/launcher/src/main/features/launcher.json +++ b/oauth/launcher/src/main/features/launcher.json @@ -31,6 +31,17 @@ "scopes": ["user:email"] }, "org.apache.sling.extensions.oauth_client.impl.JcrUserHomeOAuthTokenStore" : { + }, + "org.apache.sling.commons.crypto.internal.FilePasswordProvider~oauth": { + "path": "secrets/encrypt/password", + "fix.posixNewline": true + }, + "org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar~oauth": { + "algorithm": "SHA1PRNG" + }, + "org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPbeStringCryptoService~oauth": { + "names": [ "sling-oauth" ], + "algorithm": "PBEWITHHMACSHA512ANDAES_256" } } }
