{"id":21004630,"url":"https://github.com/rangerrick/cordova-plugin-generic-password","last_synced_at":"2025-07-12T08:38:35.095Z","repository":{"id":66850389,"uuid":"88283515","full_name":"RangerRick/cordova-plugin-generic-password","owner":"RangerRick","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-26T14:42:08.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T10:13:46.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RangerRick.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":"2017-04-14T16:21:22.000Z","updated_at":"2017-04-14T16:21:40.000Z","dependencies_parsed_at":"2023-02-22T23:31:26.533Z","dependency_job_id":null,"html_url":"https://github.com/RangerRick/cordova-plugin-generic-password","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerRick%2Fcordova-plugin-generic-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerRick%2Fcordova-plugin-generic-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerRick%2Fcordova-plugin-generic-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RangerRick%2Fcordova-plugin-generic-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RangerRick","download_url":"https://codeload.github.com/RangerRick/cordova-plugin-generic-password/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419425,"owners_count":20287890,"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":[],"created_at":"2024-11-19T08:37:15.800Z","updated_at":"2025-03-13T14:22:12.172Z","avatar_url":"https://github.com/RangerRick.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-plugin-password\n\nPlugin for adding [Generic Password App Extension](https://github.com/joelastpass/generic-password-app-extension) into Cordova/PhoneGap Apps.\n\n\n## Installation\n\n```\ncordova plugin add cordova-plugin-password\n```\n\n### Supported Platforms\n\n- none\n\n## Properties\n\n- Password.findLoginForUrl(succesCallback, errorCallback, url)\n- Password.storeLoginForUrl(succesCallback, errorCallback, username, password, url, title, sectionTitle)\n\n## Usage\n\nYou **do not** need to reference any JavaScript, the Cordova plugin architecture will add a Password object to your root automatically when you build.\n\nEnsure you use the plugin after your `deviceready` event has been fired.\n\n### Find login for url\n\nPass the following arguments to the `findLoginForUrl()` function, to prompt the user to authenticate via 1Password:\n\n1. Success callback (called when a user has selected a login)\n2. Failure callback (called when a user cancels the 1Password prompt or an error occurs.)\n5. URL (String)*\n\n```\nPassword.findLoginForUrl(succesCallback, errorCallback, url)\n```\n\n### Store login for url\n\nPass the following arguments to the `storeLoginForUrl()` function, to prompt the user to authenticate via 1Password:\n\n1. Success callback (called when a user has selected a login)\n2. Failure callback (called when a user cancels the 1Password prompt or an error occurs)\n3. Username (String) \n4. Password (String)\n5. URL (String)*\n6. Title (String)\n7. Section title (String)\n\n\n```\nPassword.storeLoginForUrl(succesCallback, errorCallback, username, password, url, title, sectionTitle)\n```\n\n## *Best Practices ([see also](https://github.com/AgileBits/onepassword-app-extension#best-practices))\n\n* Use the same `URL` during Registration and Login.\n* Ensure your `URL` is set to your actual service so your users can easily find their logins within the main 1Password app.\n* You should only ask for the login information of your own service or one specific to your app. Giving a URL for a service which you do not own or support may seriously break the customer's trust in your service/app.\n* If you don't have a website for your app you should specify your bundle identifier as the `URL`, like so: `app://bundleIdentifier` (e.g. `app://com.acme.awesome-app`).\n\n\n## The MIT License (MIT)\n\nCopyright (c) 2017 Benjamin Reed\nOriginal 1Password plugin Copyright (c) 2016 SPIRIT/21\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangerrick%2Fcordova-plugin-generic-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangerrick%2Fcordova-plugin-generic-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangerrick%2Fcordova-plugin-generic-password/lists"}