Casdoor集成市场

Auth0 Migration | 提供商

Move an Auth0 tenant to Casdoor

Casdoor reads the tenant through the Auth0 Management API and previews what would be added before applying it. Users keep their Auth0 user IDs, which are the sub of their tokens, and their links to Google, GitHub and the other social providers; applications keep their client IDs and secrets; organizations become groups. Auth0 only gives password hashes through a support request, so upload that file with the migration to let users keep their passwords.

Casdoor 官方核验Auth0MigrationImport
你需要一个正在运行的 Casdoor,自己部署或用 Casdoor 云都可以。示例中的 https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。

用 Casdoor 配置 Auth0 Migration

  1. 1

    Create a machine to machine application

    In the Auth0 dashboard, create a Machine to Machine application authorized for the Auth0 Management API with the scopes below. Copy its client ID and client secret.

    Scopesread:users read:clients read:client_keys read:roles read:organizations read:organization_members
  2. 2

    Install Auth0 Migration

    On the Marketplace page of Casdoor, install Auth0 Migration into the organization the tenant goes to.

  3. 3

    Create the migration

    Under Admin > Migrations, add a migration in that organization, choose Auth0 Migration as the action, and set the host to the domain of the tenant (not a custom domain) with the client ID and secret of the application.

    Hostyour-tenant.us.auth0.com
  4. 4

    Upload the password hashes

    Auth0 exports the password hashes of database users only through a support ticket, on paid plans. Upload the file you get with the migration; without it, users of database connections set a new password the first time they sign in to Casdoor.

  5. 5

    Preview and apply

    Click Test connection and Preview to see what would be added and what can't be imported, then Apply. Applying again later only adds what is new, and Undo deletes everything the migration added.

注意事项

  • Users are named after their Auth0 user ID, such as 64b1f... for a database user, and sign in with their email as before.
  • Auth0 doesn't export its signing keys or MFA factors: users sign in again after the switch, and those with MFA enroll again.
  • The report lists the social connections the users signed in with; add the same providers to the Casdoor applications so the links keep working.

Auth0 Migration 的设置取自它的官方文档(核对于 2026年11月:Auth0 Management API、Auth0: export password hashes)。Auth0 Migration 是其所有者的商标。

常见问题

Which hosts does the action send requests to?

Only the Auth0 tenant set as the host, for the Management API and the token of the machine to machine application.

Can it import more than 1000 users?

Yes. The Management API returns at most 1000 users of one search, so the action searches by creation time and moves on from the last user of each search.