From 6be57a3b787917c2a89de1a10bb462a8f76cec51 Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 10:46:33 +0200 Subject: [PATCH 1/7] docs: update Copyright --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b984461..9d692f7 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,6 @@ To run the tests a simple `# mvn test` command in the root directory will suffic ## License -Copyright 2017-2021 Staffbase GmbH. +Copyright 2017-2025 Staffbase SE. Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 From 39f9e426c4cb3b1dc8034f5f25140563f75570f9 Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 10:48:39 +0200 Subject: [PATCH 2/7] docs: update version --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d692f7..357c15a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ We provide our Plugin SDK via Maven Central Repository (https://repo1.maven.org/ com.staffbase plugins-sdk-java - 1.2.4 + 1.2.9 ``` @@ -22,7 +22,7 @@ We provide our Plugin SDK via Maven Central Repository (https://repo1.maven.org/ ``` dependencies { - compile 'com.staffbase:plugins-sdk-java:1.2.3' + compile 'com.staffbase:plugins-sdk-java:1.2.9' } ``` From 3bb465d50b42910abda64682c9ec69c660e45b93 Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 10:56:26 +0200 Subject: [PATCH 3/7] docs: rephrase description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 357c15a..01974f6 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Plugin SDK for Java -If you are developing your own plugin for your Staffbase app we describe the authentication flow of a plugin at https://developers.staffbase.com/guide/customplugin-overview/. While this documentation just covers the conceptual ideas of the interface of plugins though – the so called Plugin SSO – we want to provide a library to help you develop your first plugin for Staffbase even faster. This SDK provides the basic functionality to parse and verify a provided token for Java. +If you are developing your own plugin for your Staffbase app we describe the authentication flow of a plugin at https://developers.staffbase.com/guide/customplugin-overview/. While the official documentation covers only the conceptual aspects of the plugins – the so called Plugin SSO – we want to provide a library to help you develop your first plugin for Staffbase even faster. This SDK provides the basic functionality to parse and verify a provided token for Java. ## Installation From 832b3e088385a03a0503e2b08f81ddc32f7b52ad Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 10:56:57 +0200 Subject: [PATCH 4/7] docs: update & extend installation --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01974f6..85b9aa4 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ We provide our Plugin SDK via Maven Central Repository (https://repo1.maven.org/ ``` dependencies { - compile 'com.staffbase:plugins-sdk-java:1.2.9' + implementation 'com.staffbase:plugins-sdk-java:1.2.9' } ``` @@ -44,7 +44,10 @@ You can try to create a token from the received jwt. RSAPublicKey rsaPublicKey = ... try { + // Create the SSO handler with your RSA public key final SSOFacade ssoFac = SSOFacade.create(rsaPublicKey); + + // Verify and decode the JWT token final SSOData ssoData = ssoFac.verify(jwToken); // If the plugin instance was deleted in Staffbase From 12845470f6a8ffb5880135d267b626a64cd9a9f7 Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 11:01:47 +0200 Subject: [PATCH 5/7] chore: add codeowners file --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..0adf2ce --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Global +* @Staffbase/need-for-speed-devs From abb0723ff049076f65a523f1a2763a44c8a4a88b Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 11:01:58 +0200 Subject: [PATCH 6/7] chore: add catalog-info.yaml --- catalog-info.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 catalog-info.yaml diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..bab3dd8 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: plugins-sdk-java + description: Framework to create a plugin in Java + annotations: + github.com/project-slug: Staffbase/plugins-sdk-java + tags: + - sdk + - framework +spec: + type: library + lifecycle: production + owner: need-for-speed From 3a2dec940768e2de2e2788182f5cd32708939082 Mon Sep 17 00:00:00 2001 From: "Elias F." Date: Tue, 3 Jun 2025 11:07:26 +0200 Subject: [PATCH 7/7] ops: update ubuntu version --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index e84dffe..a6c6554 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -9,7 +9,7 @@ on: jobs: continuous-delivery: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Check out Git repository diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0253efc..9479312 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: build-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 name: Java ${{ matrix.java }} Test strategy: matrix: