Changing JWT to use certificates
This commit is contained in:
6
main.go
6
main.go
@@ -20,7 +20,13 @@ func decodeHash(encoded string) (*argonParams, []byte, []byte, error) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
var err error
|
||||
|
||||
libshared.Pool = libshared.GetDbPool()
|
||||
privateKey, err = libshared.LoadPrivateKey("keys/private.pem")
|
||||
if err != nil {
|
||||
log.Fatal("Failed to load private key:", err)
|
||||
}
|
||||
|
||||
http.HandleFunc("/identity/create-local-identity", createLocalHandler)
|
||||
http.HandleFunc("/identity/authenticate", authenticateHandler)
|
||||
|
||||
Reference in New Issue
Block a user