-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2da4a0f
commit 3f5fecf
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/golang-jwt/jwt/v4" | ||
|
||
"knative.dev/eventing/pkg/adapter/v2" | ||
|
||
"github.com/zeiss/typhoon/pkg/sources/adapter/salesforcesource" | ||
) | ||
|
||
func main() { | ||
// JWT package marshals Audience as array even if there is only one element in it. This does not | ||
// seem to be supported by Salesforce. By setting the following option to false we tell the imported | ||
// library to marshal single item Audience array as a string. | ||
jwt.MarshalSingleStringAsArray = false | ||
|
||
adapter.Main("salesforce", salesforcesource.NewEnvConfig, salesforcesource.NewAdapter) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3' | ||
|
||
services: | ||
east1: | ||
image: docker.io/nats:2.10.9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters