我想检查JWT是否是从我们的服务器生成的?
我使用JWT对JWT进行身份验证,并使用RS256作为JWT的算法。
现在,我想用Golang编写一个函数来验证JWT令牌是否属于我们。下面是我实现的代码:
publicKey = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAxxxxxxf2iF+20xHTZ4jTUBzYmikBuUsm0839T5SDmwEquTB\nfQIDAQAB\n-----END PUBLIC KEY-----\n"
// sample token string t
我正在尝试让模式注册表运行,并且我看到了下面的异常。
ERROR Server died unexpectedly:
(io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51)
org.apache.kafka.common.config.ConfigException: Only plaintext and SSL Kafka endpoints are supported and none are configured.
at io.confluent.kafka.schemaregistry.st