Casdoor集成市场

Stripe Identity | 实名认证提供商

Verify real identities with Stripe Identity

When a user clicks Verify on their profile, Casdoor sends them to Stripe's page to photograph a passport, ID card or driver's license and take a selfie. After they come back, Casdoor checks that Stripe verified the document and that its number and name match what the user entered, then marks the user as verified. Works for documents from more than 100 countries.

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

用 Casdoor 配置 Stripe Identity

  1. 1

    Activate Stripe Identity

    In the Stripe Dashboard, open Identity and activate it for your account. You can try it first with your test mode keys, where no real document is needed.

  2. 2

    Create a restricted key

    Under Developers → API keys, create a restricted key with Write on Identity verification sessions and Read on Identity verification reports, and allow it to access sensitive verification results so Casdoor can compare the document number. A secret key works too, but cannot read the document number, so only the name is compared.

  3. 3

    Install Stripe Identity from the Marketplace

    On the Marketplace page of Casdoor, install Stripe Identity and enter the key as the client secret; the client ID is not used. Casdoor adds an ID Verification provider of type Plugin with the same name. If a user tries to verify before any ID verification provider exists, Casdoor installs it by itself and asks the administrators to fill in the key.

    Client secretrk_live_...
  4. 4

    Verify a user

    Add the provider to an application's Providers. A user fills in the ID type, ID number and real name on their profile and clicks Verify; they return to the profile when Stripe is done.

注意事项

  • Stripe charges for each verification session that is completed, whether it passes or not. Check Stripe Identity pricing for your country.
  • A name in another script, such as Chinese characters against the romanized name on a passport, cannot be compared, so the document number decides; with a key that cannot read the number, such a user cannot be verified and the administrators are told to change the key.
  • If Stripe is still processing the photos when the user returns, the profile says so; clicking Verify again later picks up the result without starting over.

Stripe Identity 的设置取自它的官方文档(核对于 2026年12月:Stripe Identity: verification sessions、Stripe API: VerificationSession)。Stripe Identity 是其所有者的商标。

常见问题

Does Casdoor store the photos of the document?

No. The photos stay with Stripe; Casdoor only reads the verification result, the document number and the name.

Does Casdoor run code from the Marketplace for this?

Yes, a small WebAssembly module that runs inside Casdoor in a sandbox. It cannot read files or the database, and can only send requests to api.stripe.com.