Skip to main content

Testing

The api-testbed, staging and dev environments all accept test data. NO BankID QES uses the same test data as standard BankID.

NNIN is always available on the testing environment, so you'll get a Norwegian personal number back without an extended certificate.

Standard BankID test users

Use a fake personal number from Nets' test user list. Type the number in manually rather than pasting it: one digit is hidden and won't come through on copy-paste.

The password for these test users is qwer1234, and the one-time code is otp.

You can also generate your own test user at ra-preprod.bankidnorge.no.

Testing BankID Biometric

BankID Biometric runs through a dedicated mobile app rather than the code device, so testing it needs a physical device with a test SIM and a few extra setup steps:

  1. Generate a test NNIN (select D-number) at ra-preprod.bankidnorge.no and save it.
  2. Order a BankID for that test user in the preprod admin tool: check "Netcentric", enter the test user's name, pick any friendly name, and select "BankID TestBank" under the available services.
  3. Install BankID PreProd from TestFlight (iOS only) on the test device and open it.
  4. Enter the generated NNIN and the phone number used when ordering the BankID. No SMS is sent. Instead, fetch the OTP from https://toba-preprod.bankidapis.no/test-events?nnin=<your test NNIN>.
  5. Activate the app using activation codes, fetching the two-word code from the same test-events endpoint, then complete activation with OTP otp and password qwer1234.

Full walkthrough with screenshots: developer.bankid.no/bankid-with-biometrics/testing.