{"id":13749734,"url":"https://github.com/hansemannn/ti.onepassword","last_synced_at":"2025-07-26T09:05:16.794Z","repository":{"id":142791274,"uuid":"69194263","full_name":"hansemannn/ti.onepassword","owner":"hansemannn","description":"🔐 Support the 1Password App Extension with Titanium Mobile","archived":false,"fork":false,"pushed_at":"2021-04-06T12:02:34.000Z","size":1052,"stargazers_count":20,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T01:11:23.215Z","etag":null,"topics":["1password","appcelerator","titanium"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-25T22:27:31.000Z","updated_at":"2021-07-14T02:22:27.000Z","dependencies_parsed_at":"2023-05-31T16:16:03.205Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/ti.onepassword","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.onepassword","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.onepassword/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.onepassword/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fti.onepassword/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/ti.onepassword/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249151701,"owners_count":21221099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1password","appcelerator","titanium"],"created_at":"2024-08-03T07:01:11.204Z","updated_at":"2025-04-15T20:42:26.007Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# Ti.OnePassword\n\nSupport for the AgileBits [1Password App Extention](https://github.com/AgileBits/onepassword-app-extension) in Titanium Mobile to open 1Password for selecting credentials.\n\n\u003cimg src=\"https://abload.de/img/img_965973ke9.png\" height=\"375\" alt=\"1Password with Titanium\" /\u003e\n\nRequirements\n---------------\n\n- [x] iOS 11+\n- [x] Titanium SDK 9.2.0+\n\nFeatures\n---------------\n- [x] Check if 1Password is installed and can be used\n- [x] Receive login credentials from 1Password\n- [x] Store login credentials in 1Password\n- [x] Change login credentials in 1Password\n\nUsage\n---------------\nAdd the following url-scheme to the `\u003cplist\u003e` section of your `tiapp.xml` like this:\n\n```xml\n\u003cios\u003e\n    \u003cplist\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n            \u003carray\u003e\n            \u003cstring\u003eorg-appextension-feature-password-management\u003c/string\u003e\n            \u003c/array\u003e\n        \u003c/dict\u003e\n    \u003c/plist\u003e\n\u003c/ios\u003e\n```\n\nRequire the module:\n```js\nimport OnePassword from 'ti.onepassword';\n```\n\nCheck if the application supports the 1Password App Extension to show/hide a custom 1Password button:\n```js\nconst isAvailable = OnePassword.isAppExtensionAvailable();\n```\n\nRequest login credentials from 1Password:\n```js\nOnePassword.findLoginForURLString({\n    url: 'https://appcelerator.com',\n    callback: event =\u003e {\n        // Check if the operation succeeded\n        if (!event.success) {\n            alert(`Login could not be received: ${event.error}`);\n            return;\n        }\n\n        // Success - Prefill the form fields\n        usernameField.setValue(event.credentials.username);\n        passwordField.setValue(event.credentials.password);\n    }\n});\n```\nAdd a new login to 1Password:\n```js\nOnePassword.storeLoginForURLString({\n    url: 'https://appcelerator.com',\n    credentials: {\n        username: 'my_username',\n        password: 'my_password'\n    },\n    options: {\n        password_min_length: 6,\n        password_max_length: 18\n    },\n    callback: event =\u003e {\n        if (!event.success) {\n            alert(`Credentials could not be added to 1Password: ${event.error}`);\n            return;\n        }\n\n        // \u003c-- Success case\n    }\n});\n```\nChange an existing login in 1Password:\n```js\nOnePassword.changePasswordForLoginForURLString({\n    url: 'https://appcelerator.com',\n    credentials: {\n        username: 'my_username',\n        password: 'my_new_password'\n    },\n    options: {\n        password_min_length: 6,\n        password_max_length: 18\n    },\n    callback: event =\u003e {\n        if (!e.success) {\n            alert(`Credentials could not be updated in 1Password: ${event.error}`);\n            return;\n        }\n\n        // \u003c-- Success case\n    }\n});\n```\n\n#### Available credentials\n- [x] url_string\n- [x] username\n- [x] password\n- [x] totp\n- [x] login_title\n- [x] notes\n- [x] section_title\n- [x] fields\n- [x] returned_fields\n- [x] old_password\n- [x] password_generator_options\n\n#### Available options\n- [x] password_min_length\n- [x] password_max_length\n- [x] password_require_digits\n- [x] password_require_symbols\n- [x] password_forbidden_characters\n\nExample\n---------------\nCheck `example/app.js` for a basic example.\n\nAuthor\n---------------\nHans Knoechel ([@hansemannnn](https://twitter.com/hansemannnn) / [Web](http://hans-knoechel.de))\n\nLicense\n---------------\nApache 2.0\n\nContributing\n---------------\nCode contributions are greatly appreciated, please submit a new [pull request](https://github.com/hansemannn/ti.onepassword/pull/new/master)!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fti.onepassword","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Fti.onepassword","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fti.onepassword/lists"}