{"id":22210364,"url":"https://github.com/asaritech/ukey1-jquery-sdk","last_synced_at":"2026-04-17T05:31:02.477Z","repository":{"id":57385475,"uuid":"84118686","full_name":"asaritech/ukey1-jquery-sdk","owner":"asaritech","description":"Ukey1 SDK plugin for jQuery","archived":false,"fork":false,"pushed_at":"2017-11-24T19:18:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-07T09:21:14.646Z","etag":null,"topics":["authentication","jquery","jquery-plugin","oauth2","ukey1","ukey1-active-sdk"],"latest_commit_sha":null,"homepage":"https://ukey.one","language":"JavaScript","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/asaritech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T20:41:22.000Z","updated_at":"2017-11-25T13:22:41.000Z","dependencies_parsed_at":"2022-09-05T14:00:45.163Z","dependency_job_id":null,"html_url":"https://github.com/asaritech/ukey1-jquery-sdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/asaritech/ukey1-jquery-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asaritech%2Fukey1-jquery-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asaritech%2Fukey1-jquery-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asaritech%2Fukey1-jquery-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asaritech%2Fukey1-jquery-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asaritech","download_url":"https://codeload.github.com/asaritech/ukey1-jquery-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asaritech%2Fukey1-jquery-sdk/sbom","scorecard":{"id":210822,"data":{"date":"2025-08-11","repo":{"name":"github.com/asaritech/ukey1-jquery-sdk","commit":"62d30e1a03830bc573c611704a585af86a56d1d1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T00:44:32.862Z","repository_id":57385475,"created_at":"2025-08-17T00:44:32.863Z","updated_at":"2025-08-17T00:44:32.863Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31916684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["authentication","jquery","jquery-plugin","oauth2","ukey1","ukey1-active-sdk"],"created_at":"2024-12-02T20:11:37.630Z","updated_at":"2026-04-17T05:31:02.454Z","avatar_url":"https://github.com/asaritech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ukey1 SDK plugin for jQuery\n\nThis repository contains the open source jQuery plugin that allows you to client-side access the **[Ukey1 API](http://ukey.one)** from your website that uses jQuery.\n\n**!!! Please note that versions older than 2.0.0 are deprecated and don't work since November 15, 2017 !!!**\n\n## About Ukey1\n\n[Ukey1](https://ukey.one) is an Authentication and Data Protection Service with the mission to enhance security of websites. \nThe service is designed to help you with EU GDPR compliance.\n\n### Ukey1 flow for this jQuery SDK\n\n1. User clicks to \"sign-in\" button\n  - you may use our [unified sign-in button](https://github.com/asaritech/ukey1-signin-button)\n2. SDK sends a connection request to our API and gets a unique Gateway URL\n3. User is redirected to Ukey1 Gateway\n4. User signs in using their favourite solution and authorizes your app\n5. User is redirected back to predefined URL\n6. SDK checks the result and gets a unique access token - user is authenticated\n7. That's it - user is authenticated (your app can make API calls to get user's data)\n\n### API specification\n\n- [API specification](https://ukey1.docs.apiary.io/)\n- [Documentation](https://asaritech.github.io/ukey1-docs/)\n\n## Requirements\n\n- [jQuery](http://jQuery.com/) \u003e=1.6.0\n- [js-cookie](https://www.npmjs.com/package/js-cookie) ^2.1.3\n\n## Usage\n\nFirst, you need [App ID](https://dashboard.ukey.one/developer). In our dashboard, we also recommend to activate Domain and Return URL Protection.\n\n**Important! This plugin is based on jQuery and requires also js-cookie plugin.**\n\n```html\n\u003cscript src=\"/path/to/jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/path/to/js.cookie.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://code.ukey1cdn.com/ukey1-jquery-sdk/v2.0.0/dist/jquery.ukey1.min.js\"\u003e\u003c/script\u003e\n```\n\n### Example\n\nFirst, let's see how to redirect user to Ukey1 Gateway...\n\n```javascript\n$(function() {\n  var UKEY1_APP_ID = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';\n\n  $('.ukey1-button').click(function(e) {\n    e.preventDefault();\n\n    var options = {\n      appId: UKEY1_APP_ID,\n\n      // This is an URL for redirection back to the app\n      // Do you know what is absolutely perfect?\n      // - it may be unique\n      // - it may contain query parameters and/or fragment\n      returnUrl: 'http://example.org/login?action=check\u0026user=XXX#fragment',\n\n      // See the full list of permissions: https://asaritech.github.io/ukey1-docs/Docs/Permissions/#data-fields\n      scope: ['firstname', 'email'],\n\n      // This option allows you to change the message on the gateway screen (\"Sign up\" versus \"Log in\")\n      signup: true\n    };\n\n    try {\n      new $.ukey1().connect(options);\n    } catch (error) {\n      console.log('Something went wrong', error);\n    }\n  });\n});\n```\n\nOnce the user authorizes your app, Ukey1 redirects the user back to your app to the URL you specified earlier. \nThe same is done if user cancels the request. You have to handle the event and call authorization method like this:\n\n```javascript\n// ...\n\nfunction authorizationEvent() {\n  var options = {\n    appId: UKEY1_APP_ID,\n    success: function (user, scope) {\n      // This callback is called when user is authenticated and your app is authorized\n\n      var id = user.id;\n\n      // Please note that everything excepts ID and mandatory fields may be empty if the user decides to not to grant you access to that field\n      var firstName = user.firstname;\n      var email = user.email;\n\n      console.log(user, scope);\n    },\n    finished: function (success) {\n      // This callback is called everytime (even if request is successful or not)\n    }\n  };\n\n  try {\n    new $.ukey1().accessToken(options);\n  } catch (error) {\n    console.log('Something was wrong', error);\n  }\n}\n\n// ...\n```\n\nWe have also prepared a working [example](https://github.com/noo-zh/ukey1-jquery-sdk-example) - try it and get to know how to implement our SDK quickly!\n\n## License\n\nThis code is released under the MIT license. Please see [LICENSE](https://github.com/asaritech/ukey1-jquery-sdk/blob/master/LICENSE) file for details.\n\n## Contributing\n\nIf you want to become a contributor of this jQuery SDK, please first contact us (see our email below).\nIf you would like to work on another SDK (in your favorite language), we will glad to know about you too!\n\n## Contact\n\nReporting of any [issues](https://github.com/asaritech/ukey1-jquery-sdk/issues) are appreciated.\nIf you want to contribute or you have a critical security issue, please write us directly to [developers@asaritech.com](mailto:developers@asaritech.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasaritech%2Fukey1-jquery-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasaritech%2Fukey1-jquery-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasaritech%2Fukey1-jquery-sdk/lists"}