Adding attachment to identity
This commit is contained in:
6
main.go
6
main.go
@@ -28,7 +28,13 @@ func main() {
|
||||
log.Fatal("Failed to load private key:", err)
|
||||
}
|
||||
|
||||
publicKey, err = libshared.LoadPublicKey("keys/public.pem")
|
||||
if err != nil {
|
||||
log.Fatal("Failed to load public key:", err)
|
||||
}
|
||||
|
||||
http.HandleFunc("/identity/create-local-identity", createLocalHandler)
|
||||
http.HandleFunc("/identity/allow-role-to-identity", allowRoleToIdentityHandler)
|
||||
http.HandleFunc("/identity/authenticate", authenticateHandler)
|
||||
|
||||
log.Println("server running on :8080")
|
||||
|
||||
Reference in New Issue
Block a user