{"id":18521479,"url":"https://github.com/thingsboard/custom-oauth2-mapper","last_synced_at":"2026-03-13T20:03:40.187Z","repository":{"id":42555468,"uuid":"261977224","full_name":"thingsboard/custom-oauth2-mapper","owner":"thingsboard","description":"This project provides a sample of custom mapper of OAuth 2.0 external user into ThingsBoard internal user object","archived":false,"fork":false,"pushed_at":"2022-06-21T07:08:29.000Z","size":47,"stargazers_count":6,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T04:43:23.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thingsboard.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}},"created_at":"2020-05-07T07:13:23.000Z","updated_at":"2024-06-14T01:57:30.000Z","dependencies_parsed_at":"2022-09-21T18:22:22.457Z","dependency_job_id":null,"html_url":"https://github.com/thingsboard/custom-oauth2-mapper","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/thingsboard%2Fcustom-oauth2-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fcustom-oauth2-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fcustom-oauth2-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fcustom-oauth2-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thingsboard","download_url":"https://codeload.github.com/thingsboard/custom-oauth2-mapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012835,"owners_count":21033249,"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-06T17:26:09.880Z","updated_at":"2026-03-13T20:03:40.171Z","avatar_url":"https://github.com/thingsboard.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThingsBoard Custom OAuth 2.0 mapper\n\nThis project provides a sample of custom mapper of OAuth 2.0 external user info into ThingsBoard internal user object.\n\nYou can use this application as a base implementation for the Custom Mapper endpoint.\nAs well, you can copy any snippet of this implementation into your existent microservices.\n\nYou can combine this Custom Mapper with [ThingsBoard REST API Client](https://thingsboard.io/docs/reference/rest-client/) to get any additional information from the ThingsBoard platform as Tenant Id or Customer Id.   \n\n## Prerequisites\n\n- [Install Docker CE](https://docs.docker.com/engine/installation/)\n\n## Build\n\n```bash\nmvn license:format clean install -Ddockerfile.skip=false\n```\n\n## Running\n\nTo run test against ThingsBoard first create plain text file to set up test configuration (in our example configuration file name is *.env*):\n```bash\ntouch .env\n```\n\nEdit this *.env* file:\n```bash\nnano .env\n```\n\nand put next content into the text file (modify it according to your test goals):\n```bash\nCUSTOM_MAPPER_USERNAME=admin\nCUSTOM_MAPPER_PASSWORD={noop}password\n```\n\nWhere: \n    \n- `CUSTOM_MAPPER_USERNAME`       - Login of the user \n- `CUSTOM_MAPPER_PASSWORD`       - Password of the user (`{noop}` is just a configuration and not a part of the password)\n\nOnce params are configured to run test simple type from the folder where configuration file is located:\n```bash\ndocker run -it --env-file .env -p 10010:10010 --name tb-oauth2-mapper thingsboard/oauth2-mapper\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthingsboard%2Fcustom-oauth2-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthingsboard%2Fcustom-oauth2-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthingsboard%2Fcustom-oauth2-mapper/lists"}