{"id":28494064,"url":"https://github.com/mulesoft/data-weave-jwt-library","last_synced_at":"2026-02-10T12:33:51.850Z","repository":{"id":39575086,"uuid":"445214534","full_name":"mulesoft/data-weave-jwt-library","owner":"mulesoft","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T18:45:28.000Z","size":113,"stargazers_count":4,"open_issues_count":4,"forks_count":3,"subscribers_count":117,"default_branch":"master","last_synced_at":"2025-12-13T04:59:22.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"DataWeave","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mulesoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-06T15:17:48.000Z","updated_at":"2024-11-14T18:45:30.000Z","dependencies_parsed_at":"2023-10-11T18:15:53.917Z","dependency_job_id":"fcce4e39-74b5-45d2-b3df-27311b060b85","html_url":"https://github.com/mulesoft/data-weave-jwt-library","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mulesoft/data-weave-jwt-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-jwt-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-jwt-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-jwt-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-jwt-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mulesoft","download_url":"https://codeload.github.com/mulesoft/data-weave-jwt-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-jwt-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29298726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T12:23:18.846Z","status":"ssl_error","status_checked_at":"2026-02-10T12:23:06.082Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-08T09:38:10.054Z","updated_at":"2026-02-10T12:33:51.831Z","avatar_url":"https://github.com/mulesoft.png","language":"DataWeave","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataWeave JWT Library\n\n[![Development Branch](https://github.com/mulesoft/data-weave-jwt-library/actions/workflows/master_workflow.yml/badge.svg?branch=master)](https://github.com/mulesoft/data-weave-jwt-library/actions/workflows/master_workflow.yml)\n\nThis library provides functionality to create signed JSON Web Tokens directly on DataWeave with RSA and HMAC signatures.\n\n## Overview\n\nThis is a simple example using an HMAC signature:\n\n```dataweave\n%dw 2.0\nimport jwt::HMAC\noutput application/json\n---\nHMAC::JWT({\n        \"firstName\": \"Michael\", \n        \"lastName\": \"Jones\"\n    }, \"d4t4w34v3!\")\n```\n\nAnd this is a more complex example, where the key is an input to the transformation:\n\n```dataweave\n%dw 2.0\nimport * from jwt::RSA\n\noutput application/json\ninput key application/json\n---\n{\n\ttoken: JWT(\n\t\t{\n\t\t\tiss: \"some@email.com\",\n\t\t\taud: 'https://oauth2.googleapis.com/token',\n\t\t\tscope: 'https://www.googleapis.com/auth/drive.readonly',\n\t\t\tiat: now() as Number { unit: 'seconds' },\n\t\t\texp: (now() + |PT3600S|) as Number { unit: 'seconds' }\n\t\t},\n\t\tkey\n\t),\n\texpiration: now() + |PT3550S|\n}\n```\n\n\u003e **_NOTE:_** The `input` directive does not work within Mule because inputs there are managed by Mule itself. In that case, you would be able to reference the `payload` or `vars` directly.\n\n\n## Contributions Welcome\n\nContributions to this project can be made through Pull Requests and Issues on the\n[GitHub Repository](https://github.com/mulesoft/data-weave-jwt-library).\n\nBefore creating a pull request review the following:\n\n* [LICENSE](https://github.com/mulesoft/data-weave-jwt-library/blob/master/LICENSE.txt)\n* [SECURITY](https://github.com/mulesoft/data-weave-jwt-library/blob/master/SECURITY.md)\n* [CODE_OF_CONDUCT](https://github.com/mulesoft/data-weave-jwt-library/blob/master/CODE_OF_CONDUCT.md)\n\nWhen you submit your pull request, you are asked to sign a contributor license agreement (CLA) if we don't have one on file for you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmulesoft%2Fdata-weave-jwt-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmulesoft%2Fdata-weave-jwt-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmulesoft%2Fdata-weave-jwt-library/lists"}