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.
https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。用 Casdoor 配置 Auth0 Migration
- 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.
Scopes read:users read:clients read:client_keys read:roles read:organizations read:organization_members - 2
Install Auth0 Migration
On the Marketplace page of Casdoor, install Auth0 Migration into the organization the tenant goes to.
- 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.
Host your-tenant.us.auth0.com - 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
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.
更多提供商
查看全部Authelia
OAuth 提供商让用户通过 Authelia 用 OpenID Connect 登录 Casdoor:包括提供商配置,以及要加到 Authelia 配置里的客户端。
authentik
OAuth 提供商让用户用 authentik 账号通过 OpenID Connect 登录 Casdoor:包括提供商配置,以及要在 authentik 里创建的应用和 OAuth2 提供商。

超星学习通
OAuth 提供商让师生用超星学习通账号登录 Casdoor:按超星微服务开放平台的 OAuth 接口填好了授权、换取 access_token 和获取用户信息的地址。
