Brokered issuance
A Broker is a backend service you run. It signs in to the Wi-DAS Certificate API with a credential only it holds, and vouches for the user your app has signed in. The SDK hands its signing request to your Broker, and your Broker gets the certificate. We call this route brokered issuance, and it's the one we recommend on every platform.
There are two ways a certificate request can be vouched for:
| Brokered issuance (recommended) | Platform attestation | |
|---|---|---|
| Available on | iOS, Android and Windows | iOS (App Attest) and Android (Play Integrity) |
| Who vouches | Your Broker, for a user you've signed in | The platform, for your app |
| What you run | A Broker service | Nothing server-side |
| What you register with Wi-DAS | Your Broker's identity: an Entra application or a Google Cloud service account | Your app's identity, and on Android your Play Integrity keys |
We recommend the Broker because it vouches for who is being onboarded, which attestation can't. It also gives you one integration that works the same way on all three platforms. The trade-off is that a brokered request carries no proof that it came from a genuine, unmodified copy of your app: that's what attestation checks, and the Broker route doesn't. Your Broker's sign-in is what stands between a certificate and someone who shouldn't have one, so make it as strong as your own app's.
App Attest and Play Integrity still work on iOS and Android for now, but we'll remove attestation from the SDKs in the near future. Build new integrations on a Broker, and if your app uses attestation today, plan to move it across.
Windows has no attestation at all, so it depends on a Broker entirely. Without one, your Windows app can't get certificates, and there's no other route to fall back to.
You choose the route when you configure the SDK, and an SDK instance stays on that route for its lifetime. If the Broker can't be reached, the SDK doesn't quietly fall back to attestation.
How the pieces fit
Your app (SDK) Your Broker Wi-DAS Certificate API
generates the key pair
builds the signing request ──▶ checks who the user is
POST /broker/certificates ───────▶ checks the Broker's credential
issues the certificate
◀── passes the response back ◀───────
installs the certificate
and the Passpoint profile
The private key is generated on the device and stays there. Only the signing request (CSR), which carries the public key, passes through your Broker. Your Broker makes the call to the Certificate API, so the device never asks for a certificate itself.
How your app reaches your Broker is up to you. The SDK defines no wire format and holds no credential for that hop: you write a small adapter that takes the SDK's signing request, sends it to your Broker however you like, and hands the response back. Each platform's usage page shows one: iOS, Android and Windows.
Choose how your Broker signs in
Your Broker signs in to the Certificate API in one of two ways. Both lead to the same request, the same certificate and the same refusals; only the token differs.
| Microsoft Entra application | Google Cloud service account | |
|---|---|---|
| Use it when | Your organisation has an Entra tenant | Your Broker runs on Google Cloud and you have no Entra tenant |
| Your Broker's token | An Entra access token, from the client credentials flow | A Google-signed ID token, from the metadata server or the IAM Credentials API |
| What you send us | Your tenant ID and the application's client ID | The service account's Unique ID |
| One-off set-up | Admin consent and the Broker.Issue role in your tenant | None in Google Cloud beyond running the Broker as the service account |
| Secret to look after | The application's secret or certificate | None |
| How to set it up | Making the calls, below | Running a Broker on Google Cloud |
What running a Broker commits you to
This is a standing piece of infrastructure, and the main cost of brokered issuance. Plan for it before you start the integration.
A service your app can always reach
Your app hands the SDK's signing request to your Broker, and the Broker passes the Certificate API's response back untouched. If the Broker is down, nobody on the brokered route can enrol or renew. Run and monitor it as you would your own sign-in service, because for these users that's what it is.
A channel you've protected
The response your Broker passes back isn't just the user's certificate. It also carries the trust
material the SDK installs into the Passpoint profile: serverCaPem, the certificate authority the
device trusts the Wi-DAS RADIUS servers under, and passpoint.homeFqdn, the name those servers'
certificates must match. With attestation, these reach the SDK straight from Wi-DAS. On the brokered
route they reach it through your Broker and your app, over a connection the SDK can't see.
So two things are yours to get right:
- Protect the connection between your app and your Broker. Use TLS with certificate validation left on, and pin it if you can. Encryption alone isn't enough; the response must arrive unaltered.
- Relay the response exactly as Wi-DAS sent it. Don't rebuild, tidy or fill in any field,
especially the PEM fields and the
passpointblock.
If someone could rewrite that response, they could swap in a certificate authority of their own with a
matching homeFqdn, and the device would then trust their network. The device's private key never
leaves it, so they couldn't take the key or sign in as that user anywhere else. They could route that
device's Wi-Fi traffic through their own network and see the user identifier during sign-in. The SDK
can't detect a well-formed substitution, so this protection has to come from your side.
An identity you guard
On the Entra route, your Broker authenticates with a Microsoft Entra application in your own tenant, granted the
Broker.Issue role on the Wi-DAS Certificate API. When we set you up, Wi-DAS registers that application
against your organisation and the apps it's allowed to issue for.
The application's secret (or certificate) is yours to look after. Keep it on the server, never in an app or an installer, and rotate it in Entra on your own schedule. Whoever holds it can request a certificate for any user of your registered apps, so guard it as closely as a code-signing key. If it's ever exposed, tell us and we'll disable it straight away.
We recommend a certificate credential over a client secret, and keeping it in a managed secret store such as Azure Key Vault rather than in configuration files or environment variables.
On Google Cloud there's no secret: the service account is the identity, and anything that can mint its ID token can request certificates. Keeping the service account safe says how to guard it.
Signing your users in
Wi-DAS doesn't check the user identifier your Broker sends. Your Broker vouches for it, and it goes into the certificate as that user's identity. Only request a certificate for someone your own sign-in has already authenticated.
Retrying safely
Every certificate request carries an Idempotency-Key, and a retry must send the same key as the
attempt it's retrying. Getting this wrong costs a user their connection. A new certificate replaces the
one that user already has on that device, so if a request times out and you retry with a fresh key, the
API sees a second enrolment. It issues another certificate and revokes the first, and if the device had
already installed the first one, the network now turns it away. Retrying with the original key returns
the original response instead, and nothing is issued twice.
There's one exception. If we answer 503 issuanceTimedOut, we've abandoned the request and released its
key, and no certificate came back to you. Retry that one with a fresh key. The refusals table
says which key to use for each answer.
The SDK doesn't send a key with its signing request. Making one, and reusing it on retries, is your Broker's job, because only your Broker knows which of its calls are retries.
Rate limits that cover your whole estate
On the certificate route, limits are counted per Broker credential. Every device you enrol, on any
platform, draws on the same budget, so a big rollout looks to us like one very busy caller. Stagger
large enrolment waves, and back off when you get a 429.
Making the calls
The Production base URL is https://partner-api.wi-das.com. We'll share the details of any test
environment with you during onboarding.
The set-up and token steps below are for a Broker that signs in through Entra. On Google Cloud, follow Running a Broker on Google Cloud instead of them, then carry on from Request a certificate: from there on, both routes are the same.
Before you start: set up your Broker in Entra
Your Broker needs an application registration in your own Microsoft Entra tenant, with a client secret or certificate. Then make two one-off changes in your tenant, which need an Entra administrator.
First, bring the Wi-DAS Certificate API into your tenant. Your administrator signs in and grants consent at this address:
https://login.microsoftonline.com/{your-tenant-id}/adminconsent?client_id=cddf2cd5-c4d5-4e91-9ace-1e03c5fd8b4d
(Or, with the Azure CLI: az ad sp create --id cddf2cd5-c4d5-4e91-9ace-1e03c5fd8b4d.)
Second, give your Broker application the Broker.Issue role. In its registration, go to API
permissions → Add a permission → APIs my organization uses, pick app-widas-partner-api, choose
Application permissions → Broker.Issue, and select Grant admin consent.
Then send us your tenant ID and your Broker application's Application (client) ID. We register
them against your organisation and give you your app's clientId. Until we've done that, every
request gets brokerNotAuthorised.
1. Get an access token
Use the client credentials flow against your own tenant:
POST https://login.microsoftonline.com/{your-tenant-id}/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id={your-broker-application-id}
&client_secret={your-broker-secret}
&scope=api://cddf2cd5-c4d5-4e91-9ace-1e03c5fd8b4d/.default
The access_token in the response is your bearer token. Tokens last about an hour, so cache one and
reuse it. In .NET, MSAL's AcquireTokenForClient does both, as long as you build the client
application once and keep it, since the token cache lives on that instance:
// Built once and reused for the life of the Broker.
static readonly IConfidentialClientApplication Msal = ConfidentialClientApplicationBuilder
.Create(brokerApplicationId)
.WithCertificate(brokerCertificate) // or .WithClientSecret(brokerSecret)
.WithAuthority(AzureCloudInstance.AzurePublic, yourTenantId)
.Build();
static async Task<string> GetAccessTokenAsync(CancellationToken cancellationToken)
{
var result = await Msal
.AcquireTokenForClient(new[] { "api://cddf2cd5-c4d5-4e91-9ace-1e03c5fd8b4d/.default" })
.ExecuteAsync(cancellationToken);
return result.AccessToken;
}
2. Request a certificate
Send the signing request from the device, along with the user you've signed in:
POST https://partner-api.wi-das.com/broker/certificates
Authorization: Bearer {access-token}
Content-Type: application/json
Idempotency-Key: 6F1C2A9B4D4F7A8C215D0E9A7B3C143F6C1E2A9B4D4F7A8C215D0E9A7B3C14AB
{
"clientId": "client-acme",
"partnerUserId": "user-42",
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIBJzCBzwIBADBt...\n-----END CERTIFICATE REQUEST-----\n",
"requestedValidity": "P365D",
"deviceId": "9f2a41c8b73e05d6a1e4f0b28c7d3a56"
}
| Field | Required | What goes in it |
|---|---|---|
clientId | Yes | Your app's identifier, as registered with Wi-DAS. Up to 64 characters |
partnerUserId | Yes | Your identifier for the signed-in user. Up to 62 characters, with no @, spaces or control characters |
csr | Yes | The PEM signing request the SDK built, exactly as the app sent it |
requestedValidity | No | ISO 8601 duration, such as P365D. Leave it out to get your maximum. Anything over your maximum is cut down to it. By default the maximum is 365 days, and we can set a lower one for your organisation |
deviceId | No | The device identifier the SDK supplies. Send it, so each of a user's machines keeps its own certificate. Up to 128 characters. Leave it out rather than sending an empty string, which is refused |
Idempotency-Key is required, up to 255 characters. It has to stay the same across every retry of a
request, even if your Broker restarts in between. There are two safe ways to make one:
- Derive it from the request's fields. Hash
clientId,partnerUserId,csr,requestedValidityanddeviceId, always in that order and with each value length-prefixed, and use the hex SHA-256 as the key, as in the example. You don't need to store anything, and the next enrolment has a new signing request and so a new key. Don't hash the raw JSON body: if your Broker serialises the request again on a retry, a change in property order or whitespace gives a different key, and the retry becomes a second enrolment. - Generate a UUID per enrolment and save it before the first attempt, alongside whatever else you record about that enrolment. This is simpler to get right, but the key has to survive a restart, so you're storing something for every enrolment in flight.
Once a request succeeds, its key is remembered for 24 hours by default. A retry after that is treated as a new request.
Unlike attestation, there's no challenge to fetch first.
A successful request returns 201 Created:
{
"serial": "0123456789ABCDEF",
"deviceId": "9f2a41c8b73e05d6a1e4f0b28c7d3a56",
"certificatePem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"chainPem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"serverCaPem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"notBefore": "2026-10-09T14:00:00Z",
"notAfter": "2027-10-09T14:00:00Z",
"passpoint": {
"friendlyName": "Acme WiDAS",
"caCertName": "Acme WiDAS CaCert",
"certName": "Acme WiDAS Cert",
"realm": "acme.wi-das.com",
"homeFqdn": "wi-das.com",
"mcc": "310",
"mnc": "260",
"rcoi": "5A03BA0000"
}
}
Return this body to your app unchanged. It holds everything the SDK needs to install the certificate
and the Passpoint profile. Your app's adapter maps it onto the SDK's IssuanceResponse, with
certificatePem as the client certificate and chainPem as the issuing CA. The usage pages show the
app side for iOS, Android
and Windows.
3. Handle refusals
Errors come back as application/problem+json, with the error code in title:
{
"title": "brokerNotAuthorised",
"status": 403,
"detail": "..."
}
Pass title back to your app exactly as it arrived. Each SDK maps it to the same error codes, whichever
platform it's on.
Status and title | What it means | What to do |
|---|---|---|
400 | The body isn't valid JSON, or a field broke the rules in the table above (a required field is missing, a value is too long, partnerUserId has a forbidden character, deviceId or requestedValidity is an empty string). The errors object names the fields | Fix the request. Retrying won't help |
401 | The token is missing, expired, or was issued for a different scope (on Google Cloud, a different audience) | Get a new token from the right scope or audience |
403 with any title other than brokerNotAuthorised | The token is valid but doesn't carry the Broker.Issue role. On Google Cloud, see its refusals | Grant the role and admin consent in Entra, then get a new token |
403 brokerNotAuthorised | Your Broker isn't allowed to issue for this app, or its registration or the app is disabled | Contact us |
409 issuanceInProgress | A request with this key is still being processed | Retry shortly with the same key |
422 idempotencyKeyReused | The key was already used for a different request | Fix how the Broker makes keys |
422 idempotencyKeyMissing / idempotencyKeyTooLong | No key, or one over 255 characters | Fix the request |
422 csrInvalid / subjectInvalid / validityInvalid | The signing request or a field failed validation | Fix the request. Retrying won't help |
429 | You've hit the rate limit for your credential. The response has no problem body | Back off, then retry with the same key from your Broker. If you pass it to the app instead, have your adapter report it as unreachable, so the app sees a retryable network |
503 issuanceTimedOut | Issuance took too long and was abandoned, and the key was released | Retry with a fresh key |
500 caUnavailable, serverTrustUnavailable or idempotencyUnavailable | A temporary problem on our side | Retry later with the same key, and tell us if it persists |
500 passpointConfigUnavailable | Your organisation's Passpoint settings aren't complete on our side. The SDKs report it as issuanceRejected | Contact us. Retrying won't help until we've fixed it |
4. Check a certificate's status (Windows only, optional)
On iOS and Android your Broker has nothing to do here: the SDK looks up a certificate's status with Wi-DAS itself, on both routes. The Windows SDK can ask your Broker about a certificate by its serial instead. Relay that to:
GET https://partner-api.wi-das.com/certificates/0123456789ABCDEF/status
{
"serial": "0123456789ABCDEF",
"status": "active",
"notAfter": "2027-10-09T14:00:00Z"
}
status is one of active, revoked, expired or unknown. A 404 means the serial isn't one we
issued, which is an answer rather than a fault. This call needs no token, but its rate limit is counted
per calling address, so a Broker relaying for a whole estate shares one allowance. Cache the answers.
You can skip this call entirely: when your Broker can't answer, the SDK falls back to what it knows
about the certificate on the machine.
Where a brokered certificate's trust comes from
A certificate issued through your Broker is the same as one issued through attestation. It has the same fields and comes from the same issuing CA, and the network treats both kinds identically.
The difference is in who vouched for it.
| Attested (iOS, Android) | Brokered (any platform) | |
|---|---|---|
| Who vouches | The platform | Your Broker |
| What it proves | The request came from a genuine, unmodified copy of your registered app | Your backend vouched for this user |
| The user identifier | Whatever your app passed in | Whatever your Broker vouched for |
| App integrity | Checked | Not checked |
Wi-DAS doesn't verify the user on either route. With attestation, the user identifier is whatever your app supplied. On the brokered route it's whatever your Broker vouched for, so it's only as reliable as your Broker's sign-in. A brokered certificate also tells you nothing about the app that asked for it.
Nothing in the certificate itself shows which route issued it. If you'll need to tell them apart later, keep your own record: your Broker sees every certificate it requests.