# Authentifizierung mit FileMetadata

**URL:** <https://community.openems.io/t/authentifizierung-mit-filemetadata/930>\
**Category:** Deutsches Forum\
**Created:** [April 22, 2022, 6:16pm UTC](https://community.openems.io/t/authentifizierung-mit-filemetadata/930 "2022-04-22T18:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![obel1x](https://community.openems.io/user_avatar/community.openems.io/obel1x/32/461_2.png) [@obel1x](https://community.openems.io/u/obel1x)\
**Post date:** [April 27, 2022, 6:43pm UTC](https://community.openems.io/t/authentifizierung-mit-filemetadata/930/3 "2022-04-27T18:43:10Z")

</div>

Nein, das gibt gleich einen Fehler:

```auto
[io.openems.backend.metadata.file.FileMetadata] WARN : [Metadata.File] Unable to JSON-parse file [/etc/openems-backend.d/metadata.json]: JSON failed to parse [com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 55 path $.edges.edge0.comment]: { edges: { edge0: { comment: “OpenEMS Demo Edge”, apikey: “test”, setuppassword: “test” } }}
Apr 27 19:46:03 obel1x java[12519]: io.openems.common.exceptions.OpenemsError$OpenemsNamedException: JSON failed to parse [com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 55 path $.edges.edge0.comment]: { edges: { edge0: { comment: “OpenEMS Demo Edge”, apikey: “test”, setuppassword: “test” } }}

```

Auch im Validator nicht richtig: [json format at DuckDuckGo](https://duckduckgo.com/?t=ffab&q=json+format&ia=answer)  
Danach kann ich das Backend gar nicht mehr per Websocket erreichen.

Er scheint die Anführungszeichen zu brauchen.

Habe jetzt folgenden Inhalt im Validator und laut log i.O.:

```auto
{
  "edges": {
    "node0": {
      "comment": "OpenEMS Demo Edge",
      "apikey": "test",
      "setuppassword": "test",
      "password": "test"
    }
  }
}

```

Tut leider auch nicht.

Debug-Modus liefert auch keine Erkenntnisse. Allerdings… ich habe ja das Edge noch gar nicht verbunden bekommen, siehe [Edge und Backend auf einem Rechner: Address already in use - #2 by simonfey](https://community.openems.io/t/edge-und-backend-auf-einem-rechner-address-already-in-use/931/2)

Kann es sein, dass er nur den Zugang freischaltet, wenn das Edge dazu auch verbunden ist?

---

_[View the full topic](https://community.openems.io/t/authentifizierung-mit-filemetadata/930)._
