Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dokumentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
Dokumentation
Commits
9f02e09f
Commit
9f02e09f
authored
2 years ago
by
Marco Holz
Browse files
Options
Downloads
Patches
Plain Diff
fix: Use UUID as issuer in SETs
parent
5875bff8
No related branches found
Branches containing commit
No related tags found
1 merge request
!166
fix: Use UUID as issuer in SETs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/receiving/process-and-acknowledge.mdx
+2
-1
2 additions, 1 deletion
docs/receiving/process-and-acknowledge.mdx
with
2 additions
and
1 deletion
docs/receiving/process-and-acknowledge.mdx
+
2
−
1
View file @
9f02e09f
...
...
@@ -49,6 +49,7 @@ Sofern Sie den Fehler "'iat' must not be after ..." (`https://schema.fitko.de/fi
```java title=Annahmen
JWK signaturePrivateKey; // privater (geheimer) Schlüssel des für die Signaturerstellung/-prüfung genutzten Schlüsselpaares des empfangenden Systems
JWK signaturePublicKey; // öffentlicher Schlüssel des für die Signaturerstellung/-prüfung genutzten Schlüsselpaares des empfangenden Systems
String issuer = "943da3e2-c178-4b63-aa2d-2fe964b0e09d"; // our own destinationId (MUST match destinationId of this submission)
String subject = "submission:f65feab2-4883-4dff-85fb-169448545d9f"; // submissionId
String event ="https://schema.fitko.de/fit-connect/events/accept-submission";
String transactionId = "case:f73d30c6-8894-4444-8687-00ae756fea90"; // caseId
...
...
@@ -61,7 +62,7 @@ Sofern Sie den Fehler "'iat' must not be after ..." (`https://schema.fitko.de/fi
try {
JWSSigner signer = new RSASSASigner(signaturePrivateKey.toRSAKey());
JWTClaimsSet claimsSet = new JWTClaimsSet.Builder()
.issuer(
"https://my-custom-identifiable-service.domain"
)
.issuer(
issuer
)
.issueTime(new Date())
.jwtID(UUID.randomUUID().toString())
.subject(subject)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment