AcrossFlow Start free

Choose how the old mini program connects

Server integration, self-developed or WeChat authorization: what each needs from the old mini program, which to choose, and how AcrossFlow handles an AppSecret you hand over.

When you create a channel, you choose how the old mini program connects to AcrossFlow. Whichever you choose, the old mini program still needs one more release that adds a relay page. What differs is whether its backend has to change, and what you hand to AcrossFlow.

The three options

OptionOld mini program's backendWho has to helpGiven to AcrossFlowStatus
Server integrationAdds an endpoint that issues jumpsThe backend's developerNothingAvailable
Self-developedNo changesAn administrator or developer who can get the AppSecretThe old mini program's AppSecretAvailable
WeChat authorizationNo changesAn administrator who scans to authorizeA WeChat authorizationComing soon

Each old mini program can have only one channel, so pick one option per mini program.

Which to choose

  • The old mini program is registered in mainland China: Server integration is the only option. Self-developed and WeChat authorization both need open.acrossflow.com as a request domain, which WeChat requires to have an ICP filing, and acrossflow.com has none.
  • Someone can still change the old mini program's backend: choose Server integration. The backend already knows which member is signed in, so it issues the jumps and the AppSecret never leaves your systems. See Server integration.
  • The backend can't change, but you can get the AppSecret: for example, the previous vendor will ship a front-end release but won't touch the backend, or nobody maintains the backend any more. Choose Self-developed, and AcrossFlow confirms members' identities with WeChat using the AppSecret.
  • The backend can't change and you can't get the AppSecret: wait for WeChat authorization, or negotiate one of the two with whoever runs the old mini program.

If not even a release that adds a relay page can ship, members can't jump from the old mini program; see After the old mini program closes.

How AcrossFlow uses the AppSecret

  • For two things only: checking with WeChat that the AppID and AppSecret match before saving them, and, when a member jumps, exchanging the relay page's sign-in code with WeChat for the member's OpenID.
  • It's stored encrypted. Once saved, neither the Dashboard nor the API shows it again.
  • AcrossFlow gets access_tokens only through stable_token in normal mode, so the access_token the old mini program's backend holds stays valid.
  • Deleting the channel deletes the AppSecret and any cached access_token.
  • To revoke access at any time, reset the AppSecret in the WeChat Official Accounts Platform. The old one stops working at once, and AcrossFlow can no longer use it.

Before you hand over the AppSecret

  • If the old mini program's backend uses the AppSecret, ask whoever maintains it for the current one rather than resetting it. A reset issues a new AppSecret and the old one stops working at once, so the backend can no longer call WeChat's APIs either.
  • Turn off the old mini program's API IP whitelist in the WeChat Official Accounts Platform, or the channel can't be created. If the backend relies on the whitelist for protection, check with its developer first.
  • Where possible, have whoever holds the AppSecret enter it in the Dashboard themselves, rather than passing it along by chat or email.

If the AppSecret is later reset in the WeChat Official Accounts Platform, the Dashboard marks the channel AppSecret rejected and jumps stop until you choose Replace AppSecret on the channel page. Member imports aren't affected. Developer details are in Self-developed mini programs.