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
The following commit(s) were added to refs/heads/master by this push:
new 36dfd42 chore: upgrade to OAuth Client 0.1.3-SNAPSHOT (#17)
36dfd42 is described below
commit 36dfd42538b82092f327d0de5a08108cb8800975
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Jun 25 13:00:14 2025 +0200
chore: upgrade to OAuth Client 0.1.3-SNAPSHOT (#17)
---
oauth/README.md | 2 +-
oauth/core/pom.xml | 2 +-
oauth/launcher/pom.xml | 11 +++++++++--
oauth/launcher/src/main/features/launcher.json | 6 +-----
4 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/oauth/README.md b/oauth/README.md
index c82b1fc..23414d2 100644
--- a/oauth/README.md
+++ b/oauth/README.md
@@ -11,7 +11,7 @@ tokens it retrieves on behalf of the user.
The build requires Java 17.
-First of all, you need to install a SNAPSHOT build of the OAuth client bundle,
as it is still in the whiteboard.
+First of all, you need to install a SNAPSHOT build of the OAuth client bundle
that contains the latest fixes.
```
$ git clone https://github.com/apache/sling-org-apache-sling-auth-oauth-client
diff --git a/oauth/core/pom.xml b/oauth/core/pom.xml
index 36867d3..3de01e7 100644
--- a/oauth/core/pom.xml
+++ b/oauth/core/pom.xml
@@ -157,7 +157,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.auth.oauth-client</artifactId>
- <version>0.1.1-SNAPSHOT</version>
+ <version>0.1.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
diff --git a/oauth/launcher/pom.xml b/oauth/launcher/pom.xml
index 6083ea2..3cb2cac 100644
--- a/oauth/launcher/pom.xml
+++ b/oauth/launcher/pom.xml
@@ -57,11 +57,18 @@
<aggregate>
<classifier>app</classifier>
<filesInclude>*.json</filesInclude>
+ <includeArtifact>
+ <groupId>org.apache.sling</groupId>
+
<artifactId>org.apache.sling.starter</artifactId>
+ <classifier>oak_tar</classifier>
+ <version>13</version>
+ <type>slingosgifeature</type>
+ </includeArtifact>
<includeArtifact>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.auth.oauth-client</artifactId>
- <classifier>app</classifier>
- <version>0.1.1-SNAPSHOT</version>
+ <classifier>main</classifier>
+ <version>0.1.3-SNAPSHOT</version>
<type>slingosgifeature</type>
</includeArtifact>
</aggregate>
diff --git a/oauth/launcher/src/main/features/launcher.json
b/oauth/launcher/src/main/features/launcher.json
index 3668111..a201ec6 100644
--- a/oauth/launcher/src/main/features/launcher.json
+++ b/oauth/launcher/src/main/features/launcher.json
@@ -3,10 +3,6 @@
{
"id":
"org.apache.sling.samples/org.apache.sling.samples.oauth.core/1.0-SNAPSHOT",
"start-order": 25
- },
- {
- "id":
"org.apache.sling/org.apache.sling.auth.oauth-client/0.1.1-SNAPSHOT",
- "start-order": 24
}
],
"content-packages:ARTIFACTS|required": [
@@ -29,7 +25,7 @@
"tokenEndpoint": "https://github.com/login/oauth/access_token",
"clientId": "$[secret:github/clientId]",
"clientSecret": "$[secret:github/clientSecret]",
- "scopes": ["user:email"],
+ "scopes": ["openid", "user:email"],
"additionalAuthorizationParameters": ["prompt=select_account"]
},
"org.apache.sling.auth.oauth_client.impl.JcrUserHomeOAuthTokenStore" : {