add support for asymmetric crypto based jwt signatures (#145)

* add support for asymmetric crypto based jwt signatures

* wip: e2e test example

* wip: rsa key parse error...

* fix: test works

---------

Co-authored-by: James Read <contact@jread.com>
This commit is contained in:
Bernard Crnković
2023-08-24 13:33:10 +02:00
committed by GitHub
parent 8c1c0c6029
commit 6e2e585175
4 changed files with 150 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ func parseRequestMetadata(ctx context.Context, req *http.Request) metadata.MD {
return md
}
func SetGlobalRestConfig(config *config.Config) {
cfg = config
}
func startRestAPIServer(globalConfig *config.Config) error {
cfg = globalConfig