Skip to content

Commit b44ecee

Browse files
authored
Merge pull request #141 from Staffbase/update-readme
Docs: Update ReadMe
2 parents cbb2856 + 3a2dec9 commit b44ecee

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Global
2+
* @Staffbase/need-for-speed-devs

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
continuous-delivery:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313

1414
steps:
1515
- name: Check out Git repository

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build-test:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
name: Java ${{ matrix.java }} Test
1313
strategy:
1414
matrix:

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Plugin SDK for Java
44

5-
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.
5+
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.
66

77
## Installation
88

@@ -14,15 +14,15 @@ We provide our Plugin SDK via Maven Central Repository (https://repo1.maven.org/
1414
<dependency>
1515
<groupId>com.staffbase</groupId>
1616
<artifactId>plugins-sdk-java</artifactId>
17-
<version>1.2.4</version>
17+
<version>1.2.9</version>
1818
</dependency>
1919
```
2020

2121
### Gradle
2222

2323
```
2424
dependencies {
25-
compile 'com.staffbase:plugins-sdk-java:1.2.3'
25+
implementation 'com.staffbase:plugins-sdk-java:1.2.9'
2626
}
2727
```
2828

@@ -44,7 +44,10 @@ You can try to create a token from the received jwt.
4444
RSAPublicKey rsaPublicKey = ...
4545

4646
try {
47+
// Create the SSO handler with your RSA public key
4748
final SSOFacade ssoFac = SSOFacade.create(rsaPublicKey);
49+
50+
// Verify and decode the JWT token
4851
final SSOData ssoData = ssoFac.verify(jwToken);
4952

5053
// If the plugin instance was deleted in Staffbase
@@ -81,6 +84,6 @@ To run the tests a simple `# mvn test` command in the root directory will suffic
8184

8285
## License
8386

84-
Copyright 2017-2021 Staffbase GmbH.
87+
Copyright 2017-2025 Staffbase SE.
8588

8689
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

catalog-info.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
apiVersion: backstage.io/v1alpha1
3+
kind: Component
4+
metadata:
5+
name: plugins-sdk-java
6+
description: Framework to create a plugin in Java
7+
annotations:
8+
github.com/project-slug: Staffbase/plugins-sdk-java
9+
tags:
10+
- sdk
11+
- framework
12+
spec:
13+
type: library
14+
lifecycle: production
15+
owner: need-for-speed

0 commit comments

Comments
 (0)