Consumer Experience: Redirect to App (App-to-App)
The App-to-App Redirect Flow (also known as Redirect to App, or R2A) lets a Consumer complete CDR data sharing inside your own mobile app, rather than being bounced out to a browser to log in and verify with an SMS one-time password (OTP).
Because the Consumer is already signed in to your app, the authorisation can reuse that session. The result is a single authorisation screen with no customer ID entry and no OTP, removing the steps where Consumers often drop out.
Redirect to App is planned for Orion.03, ahead of the 10 May 2027 obligation. Its token exchange uses the Consent API, which is planned for Orion.02.
Supporting App-to-App is a Data Standards obligation (DP 369). It is mandatory for Data Holders with a mobile app from 10 May 2027.
Solution overviewβ
App-to-App moves the CDR authorisation off the web OTP detour and into your own app. Responsibility is split across six components. The Who owns what table further down uses the same names.
The components:
- Data Recipient (ADR) app or site: the Data Recipient the Consumer started in. It initiates the request and receives the Consumer back once data sharing is authorised.
- Native app shell (yours): your mobile app. It receives the deep link, asks your backend for a consent token, and hosts the consent WebView.
- Your backend (yours): calls the RFC 8693 token exchange on your behalf, authenticating to the Consent API as a Biza ID machine-to-machine client via the OAuth2
client_credentialsgrant (see Consent API Security Profile). This has to be a server, not the app itself β a client credential like this cannot safely live inside a mobile app binary. The exchange depends on your own session-token issuer being registered with Biza first (see Getting started). - HaaS authorisation server (Biza): handles the Pushed Authorisation Request (PAR), the Authorization Code Flow, and JARM.
- Consent API (Biza): exposes the RFC 8693 token-exchange endpoint your backend calls. See
POST /{realmName}/app2app/token. - Hosted consent page (Biza): the single screen the Consumer authorises on, including Principal selection and CDR language, talking to the native shell over the Consent WebView Event Bridge.
- Data Adapter (yours): supplies the User Principals, accounts, usage and billing that the consent page renders.
The sequence below shows how these components interact on the primary App β App path. The numbered steps and Fallback matrix that follow expand on it.
How it worksβ
-
Recipient initiates. The Consumer chooses your brand as their Data Holder in a Data Recipient app or website and taps connect. The recipient makes a Pushed Authorisation Request (PAR) to HaaS and sends the Consumer to the authorisation URL.
-
The OS launches your app. Because your app has claimed the HTTPS authorisation domain via iOS Universal Links / Android App Links, the operating system opens your app directly instead of a browser. If your app is not installed, the OS falls through to the web OTP flow automatically.
-
No re-authentication. The Consumer is already logged in, so they see no login screen and no OTP prompt. Your app's native shell asks your backend for a consent token; your backend exchanges its existing session token with the Consent API (RFC 8693 token exchange) and returns a short-lived consent token to the shell. The token is then handed to the consent WebView through the Consent WebView Event Bridge it primes before loading the page, never through the WebView's local storage or a URL.
Who calls the token-exchange endpointIt is your backend, not the native shell, that calls the Consent API's token-exchange endpoint, authenticated as a Biza ID machine-to-machine client via the OAuth2
client_credentialsgrant β see the Consent API Security Profile. That client credential cannot safely live inside a mobile app binary. -
Principal selection (conditional). If the Consumer can act for more than one account holder (for example, themselves and a business), HaaS shows a Principal selector. If there is only one Principal, this step is skipped.
-
One screen to authorise. HaaS serves a hosted consent page inside an in-app WebView. Everything needed to decide is on one screen: the accounts to share, the data clusters requested (in verbatim CDR Energy/Banking Language), the sharing duration, and a single Authorise / Deny action.
-
Return. On completion, HaaS returns the redirect URL and JARM response to the hosted consent page, which hands them to your app's native shell over the same Consent WebView Event Bridge as a completion event, not a page navigation. Your app dismisses the WebView and dispatches the deep link back to the Data Recipient, either to the app if they started in an app, or to the website if they started on the web, with the arrangement active.
Claiming the authorisation domainβ
Step 2 above depends on the recipient's authorisation URL being one your app can intercept. That URL is not a biza.io link β it uses your own brand's authorisation domain, https://auth.<your-space-domain>/{realmName}/authorize?request_uri=urn:..., or your own branded FQDN where the brand runs a custom domain.
Biza publishes the app association files Apple and Google require at that domain's root β /.well-known/apple-app-site-association (iOS) and /.well-known/assetlinks.json (Android) β scoped to the /{realmName}/authorize* path. Your app declares the same domain in its own configuration (an Associated Domains entitlement on iOS, an autoVerify="true" intent filter on Android). The OS fetches Biza's file at install/update time, matches it against your app's identifiers, and from then on opens a link to that domain directly in your app instead of a browser β this is the mechanism behind step 2's "OS launches your app", and why Biza has to host the file (Apple and Google both require it at the exact host used in the link) while you supply the app identifiers it's built from.
If your app isn't installed, or verification hasn't completed, the link is just an ordinary HTTPS link and opens in the browser β the existing web OTP flow, covered by the Fallback matrix below.
One realm is one issuer is one app: an iOS and an Android build of the same app share a realm (and populate both halves of its app-identifier configuration), but two genuinely distinct consumer apps need a realm β and CDR Register brand β each.
To set this up for a brand, see the App-to-App Registration runsheet, which walks through registering your app identifiers and claiming the domain end to end.
What the Consumer gainsβ
- No password or OTP re-entry. The Consumer has already proven who they are by being logged in to your app; device-bound biometrics (Face ID, fingerprint) satisfy multi-factor authentication.
- No app switching to a browser. The flow stays inside your app.
- A single authorisation screen instead of the multi-screen web redirect.
Fallback matrixβ
App-to-App degrades gracefully. All four combinations resolve automatically with no custom branching. In every case the Consumer returns to the surface they started on (web or app), as set by the recipient's redirect URI.
| Consumer journey | Behaviour | Path |
|---|---|---|
| App β App | Recipient app used, and your app is installed; the recipient launches your app directly. Full biometric, no OTP. | Primary |
| Web β App | Recipient is web based, but your app is installed; the OS still launches your app. | Primary |
| App β Web | Recipient app used, but your app is not installed; the OS falls through to the web OTP flow. | Fallback |
| Web β Web | Recipient web used, and your app is not installed; the existing web OTP flow is used. | Fallback |
The redirect-to-web OTP flow remains fully operative for Consumers and Data Holders where App-to-App cannot be used. Adopting App-to-App does not remove the web flow.
Who owns whatβ
The components introduced in the Solution overview divide as follows. The boundary is deliberately narrow: you provide identity and data through your app and Data Adapter; Biza provides the CDR consent surface and protocol compliance.
| You (Data Holder) own | Biza / HaaS owns |
|---|---|
| The native app shell: receives the deep link, asks your backend for a consent token, hosts the consent WebView, and dispatches the final deep link back to the recipient. | The authorisation server: PAR, Authorization Code Flow, and JARM. |
| Your backend: calls the Consent API's RFC 8693 token-exchange endpoint on the shell's behalf, holding the Biza ID machine-to-machine client credential that authorises the call. | The Consent API: the RFC 8693 token-exchange endpoint (POST /{realmName}/app2app/token). |
| The Data Adapter: Get User Principals, accounts, usage and billing. | The hosted consent page: Principal selection, the single authorise screen, CDR language, and the completion event. |
| App store registration metadata: bundle ID + Team ID (iOS); package name + signing fingerprint (Android). Token exchange trust: your own session-token issuer, JWKS URI and audience (all supplied to Biza at onboarding). | App link hosting (AASA / assetlinks.json) and per-app issuer registration: per-brand identifiers editable in HaaS Manager. Token exchange trust registration: verification material for your session tokens, configured by Biza as part of onboarding, not a self-service HaaS Manager field. |
| Consent WebView Event Bridge implementation: your native shell's send/receive side, built against Biza's specification. | Consent WebView Event Bridge specification: the message contract itself, and the hosted consent page's side of it. |
Identity handoffβ
Your app's existing session token (the one you exchange) must carry biza-au:auth:user_id (required) and biza-au:auth:principal_id (optional, if your own UX has already resolved one) as top-level claims. The consent token issued by the RFC 8693 exchange carries the same two claims, aligned to the IDs your Data Adapter already uses. No secondary identifier mapping is required. The token:
- is short-lived, capped at the consent session length (10 minutes today), with no refresh: an expired session restarts the flow; and
- is never passed in a URL or query string, and never written to the WebView's local storage. Your app's native shell hands it to the hosted consent page through the Consent WebView Event Bridge it primes before loading the page, and the same bridge carries the completion signal back when the Consumer finishes.
Getting startedβ
To enable App-to-App for a brand, register your app's identifiers with Biza and claim the authorisation domain in your app. See the App-to-App configuration and runsheet for what to provide and the steps involved.