Skip to content

Commit

Permalink
Merge pull request #111 from criipto/mitid-ervherv-vat-prefill
Browse files Browse the repository at this point in the history
document MitID Ervherv VAT ID prefill feature
  • Loading branch information
sgryt authored Mar 25, 2024
2 parents 69182dd + f145203 commit a12b144
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/pages/verify/e-ids/danish-mitid-erhverv.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ You can determine which kind of option the user selected by inspecting the claim
- Company signatory logins will have a `companySignatory` claim with value `true`.
- Private logins will have neither of the above.

### Prefill VAT ID (CVR number)

If you already have an expectation of what company the user will login on behalf of, you can prefill the VAT ID (CVR number)
to limit their selection choice (if multiple roles in the same company) or skip the company selector all together.

- When activating MitID Erhverv via acr_values: `urn:grn:authn:dk:mitid:business`: `login_hint=vatid:DK<CVR>`
- When activating MitID Erhverv via login_hint: `login_hint=business vatid:DK<CVR>`

## Test users

To test business logins with MitID Erhverv, you will start by [creating a test organization](/verify/e-ids/danish-mitid-erhverv/#create-test-organization) and [a test user](/verify/e-ids/danish-mitid-erhverv/#create-test-users), and then [connect the test user](/verify/e-ids/danish-mitid-erhverv/#connect-user-to-organization-as-an-employee) to the organization as an employee.
Expand Down
9 changes: 5 additions & 4 deletions src/pages/verify/guides/prefilled-fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ By default the user is prompted for this data when needed, but if you would like
The actual support for controlling the input data varies by eID method:

1. Danish MitID: Use `login_hint=sub:<CPR>` where `<CPR>` has the format `DDMMYYXXXX`
2. Swedish BankID: Use `login_hint=sub:<SSN>` where `<SSN>` has the format `YYYYMMDDXXXX`
3. Norwegian BankID Mobile: Use `login_hint=BIM:<PHONENUMBER>:<BIRTHDATE>` where `<PHONENUMBER>` has 8 digits and `<BIRTHDATE>` has the format `DDMMYY`
4. Norwegian BankID Kodebrikke: Use `login_hint=BID:<SSN>` where `<SSN>` has the format `DDMMYYXXXXX`
5. Norwegian BankID Biometrics: Use `login_hint=BIS:<SSN>` where `<SSN>` has the format `DDMMYYXXXXX`
2. Danish MitID Erhverv: Use `login_hint=vatid:DK<CVR>`, [additional details](/verify/e-ids/danish-mitid-erhverv/#prefill-vat-id-cvr-number)
3. Swedish BankID: Use `login_hint=sub:<SSN>` where `<SSN>` has the format `YYYYMMDDXXXX`
4. Norwegian BankID Mobile: Use `login_hint=BIM:<PHONENUMBER>:<BIRTHDATE>` where `<PHONENUMBER>` has 8 digits and `<BIRTHDATE>` has the format `DDMMYY`
5. Norwegian BankID Kodebrikke: Use `login_hint=BID:<SSN>` where `<SSN>` has the format `DDMMYYXXXXX`
6. Norwegian BankID Biometrics: Use `login_hint=BIS:<SSN>` where `<SSN>` has the format `DDMMYYXXXXX`

<Highlight icon="file-lines">

Expand Down

0 comments on commit a12b144

Please sign in to comment.