{"id":19875048,"url":"https://github.com/smartmovesystems/firebase-keycloak-importer","last_synced_at":"2025-10-26T05:07:43.662Z","repository":{"id":43536941,"uuid":"295634244","full_name":"SmartMoveSystems/firebase-keycloak-importer","owner":"SmartMoveSystems","description":"Tool for importing exported Firebase users to Keycloak","archived":false,"fork":false,"pushed_at":"2021-02-18T00:54:02.000Z","size":104,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-07-15T16:38:57.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/SmartMoveSystems.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-09-15T06:23:11.000Z","updated_at":"2023-07-15T16:38:57.695Z","dependencies_parsed_at":"2022-09-01T14:11:38.913Z","dependency_job_id":null,"html_url":"https://github.com/SmartMoveSystems/firebase-keycloak-importer","commit_stats":null,"previous_names":[],"tags_count":9,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMoveSystems%2Ffirebase-keycloak-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMoveSystems%2Ffirebase-keycloak-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMoveSystems%2Ffirebase-keycloak-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMoveSystems%2Ffirebase-keycloak-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartMoveSystems","download_url":"https://codeload.github.com/SmartMoveSystems/firebase-keycloak-importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224307612,"owners_count":17289851,"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-12T16:26:38.455Z","updated_at":"2025-10-26T05:07:38.643Z","avatar_url":"https://github.com/SmartMoveSystems.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase User export to Keycloak import\n\nUtility for importing exported Firebase users to an appropriately configured Keycloak instance.\n\nTo be used on a Keycloak instance configured with with the [Keycloak Firebase Scrypt](https://github.com/SmartMoveSystems/keycloak-firebase-scrypt) extension.\n\n## Build\n\n```bash\n./gradlew build\n```\n\n## Download latest release\n\n```\ncurl -L https://github.com/SmartMoveSystems/firebase-keycloak-importer/releases/download/1.0.1/firebase-keycloak-importer-1.0.1.jar \u003e firebase-keycloak-importer-1.0.1.jar\n```\n\n## Usage\n\nExport your Firebase user database to a JSON file using the [Firebase CLI](https://firebase.google.com/docs/cli/auth)\n\nExport your Firebase project's hash parameters to a JSON file with the format:\n\n```\n{\n    \"hash_config\": {\n      \"algorithm\": \"SCRYPT\",\n      \"base64_signer_key\": \"jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA==\",\n      \"base64_salt_separator\": \"Bw==\",\n      \"rounds\": 8,\n      \"mem_cost\": 14,\n    }\n}\n```\n\nRun the following (the args `\"--clientId\", \"--roles\", \"--clientSecret\", \"--default\", \"--debug\"` are optional):\n\n```bash\njava -jar build\\libs\\firebase-keycloak-importer-1.0.1.jar --usersFile example_users.json --hashParamsFile example_hash_config.json --adminUser support@smartmovetaxis.com --adminPassword admin --realm smartmove --serverUrl http://localhost:8080/auth --default true\n```\n\nThe `default` argument specifies that the imported hash parameters will be the ones used for future users.\nIf you are only importing from one Firebase project, you must set this argument to `true`.\n\nThe client with the specified `clientId` and all specified `roles` must already exist in your Keycloak configuration.\n\n## Importing from multiple projects\n\nIf there is a user with the same email address between multiple imported projects, the first imported user record wins.\n\nThe only difference is that the `phone_verified` claim is set to false if the imported phone numbers differ between projects.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartmovesystems%2Ffirebase-keycloak-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartmovesystems%2Ffirebase-keycloak-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartmovesystems%2Ffirebase-keycloak-importer/lists"}