From 2612993760ad18fa016988d044868b2a87d32d97 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Mon, 23 Aug 2021 00:24:13 +0200 Subject: [PATCH] Small changes to README. --- README.md | 86 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 06c1b4a..80e033b 100644 --- a/README.md +++ b/README.md @@ -18,67 +18,69 @@ Basic 1Password 1PIF structure ```json { - 'contentsHash': 'cf89d854', - 'createdAt': 1617646219, - 'location': 'https://domain.com/', - 'locationKey': 'domain.com', - 'openContents': { - 'tags': ['Tag1', 'Tag2'] + "contentsHash": "cf89d854", + "createdAt": 1617646219, + "location": "https://domain.com/", + "locationKey": "domain.com", + "openContents": { + "tags": ["Tag1", "Tag2"] }, - 'secureContents': { - 'URLs': [ - {'label': 'website', 'url': 'https://domain.com/'} + "secureContents": { + "URLs": [ + {"label": "website", "url": "https://domain.com/"} ], - 'fields': [ + "fields": [ { - 'designation': 'username', - 'name': 'name_of_username_field_on_website', - 'type': 'T', - 'value': 'john.doe' + "designation": "username", + "name": "name_of_username_field_on_website", + "type": "T", + "value": "john.doe" }, { - 'designation': 'password', - 'name': 'name_of_password_field_on_website', - 'type': 'P', - 'value': 'ultrasecurepassword' + "designation": "password", + "name": "name_of_password_field_on_website", + "type": "P", + "value": "ultrasecurepassword" } ], - 'notesPlain': 'This is a note.', - 'sections': [ + "notesPlain": "This is a note.", + "sections": [ { - 'fields': [ + "fields": [ { - 'inputTraits': {'autocapitalization': 'Words'}, - 'k': 'string', - 'n': 'org_name', - 't': 'group', - 'v': 'My Organisation' + "inputTraits": {"autocapitalization": "Words"}, + "k": "string", + "n": "org_name", + "t": "group", + "v": "My Organisation" }, { - 'inputTraits': {'autocapitalization': 'Words'}, - 'k': 'string', - 'n': 'member_name', - 't': 'member name', - 'v': 'John Doe' + "inputTraits": {"autocapitalization": "Words"}, + "k": "string", + "n": "member_name", + "t": "member name", + "v": "John Doe" } - ] - 'name': '', - 'title': '' + ], + "name": "", + "title": "" }, { - 'name': 'linked items', - 'title': 'Related Items' + "name": "linked items", + "title": "Related Items" // no "fields" structure = empty section } ] }, - 'scope': 'Never', - 'securityLevel': 'SL5', - 'title': 'My secret password', - 'typeName': 'webforms.WebForm', - 'updatedAt': 1618176026, - 'uuid': 'ysd77pxq4zghhodfbo47cewudy'} + "scope": "Never", + "securityLevel": "SL5", + "title": "My secret password", + "typeName": "webforms.WebForm", + "updatedAt": 1618176026, + "uuid": "ysd77pxq4zghhodfbo47cewudy" +} ``` +Fields inside the secureContents --> fields structure are to be filled on web-forms. "designation" can be "username" or "password" and means the standard input fields in a 1P record. They are then mapped into the website's form fields via the "name" value. Fields inside sections can be of various types: text, url, email, address, date, month/year, otp, password or a phone number.