„Nitrokey“ konfigurēšana „Entra ID“ lietošanai

Compatible Nitrokeys

3A/C/Mini

Passkey

HSM 2

Pro 2

FIDO2

Storage 2

Start

U2F

✓

active

✓

active

⨯

inactive

⨯

inactive

⨯

inactive

⨯

inactive

⨯

inactive

⨯

inactive

The Nitrokey 3 and Nitrokey Passkey support provisioning credentials for Microsoft Entra for seamless employee on-boarding in enterprise scenarios.

Iestatīšana

Lai nodrošinātu lietotāju autentifikācijas datu reģistrēšanu ar programmēšanas palīdzību, ir nepieciešama Microsoft Entra lietojumprogramma. Šeit mēs piedāvājam jums šīs lietojumprogrammas konfigurēšanas rokasgrāmatu, ja jums ir atbilstošas piekļuves tiesības.

  1. Login to Entra Admin portal. Take a note of the primary domain which you will need later. Go to App Registrations on the left blade.

    Entra Admin Portal
  2. Izvēlieties „Jauna reģistrācija”.

    App registration
  3. Izveidojiet jaunu lietotni un norādiet tās nosaukumu. Noklikšķiniet uz „Reģistrēties”.

    App registration
  4. Šeit pierakstiet klienta ID un nomnieka ID. Tie jums būs nepieciešami vēlāk. Pārejiet uz sadaļu „API atļaujas” lietotnes logā.

    App home
  5. Click on Add a permission.

    App home
  6. Select Microsoft Graph.

    App home
  7. Izvēlieties „Lietojumprogrammas atļaujas”.

    App home
  8. Search for UserAuthenticationMethod.ReadWrite.All and select it.

    App home
  9. Search for User.ReadWrite.All and select it (Only if you want to be able to create users from pynitrokey). Click on the Add Permissions button.

    App home
  10. Pārbaudiet piešķirtās atļaujas.

    App home
  11. Noklikšķiniet uz „Piešķirt administratora piekrišanu” un apstipriniet to.

    App home
  12. Atgriezieties lietotnes sākumlapā un kreisajā panelī izvēlieties „Sertifikāti un slepenās atslēgas“

    App home
  13. Noklikšķiniet uz „Jauns klienta slepenais kods”

    App home
  14. Ievadiet nosaukumu un derīguma termiņu, pēc tam noklikšķiniet uz „Pievienot”

    App home
  15. Pierakstiet klienta slepeno kodu (vēlāk to vairs nevarēsiet apskatīt).

    App home
  16. Noklikšķiniet uz „Autentifikācijas metodes” kreisajā panelī.

    App home
  17. Select Passkey (FIDO2).

    App home
  18. Click on the Configure tab.

    App home
  19. Click on Default Passkey profile

    App home
  20. Atceliet atzīmi no izvēles „Piemērot apliecinājumu” (Tikai tad, ja izmantojat Nitrokey, kam nav FIDO Alliance sertifikāta. Šī dokumenta sagatavošanas brīdī šāds sertifikāts ir tikai Nitrokey 3A Mini.)

    App home
  21. Click Save.

    App home
  22. You have taken note of the Tenant ID, Client ID, Client Secret and Primary Domain as a part of the process. Make a config.json file with the information. An example is shown below.

    {
        "tenant": "49d2c4c8-9144-49ea-b5f3-fc11b848cd72",
        "client": "e9f25c9c-3870-4aa8-9659-a40f09de093e",
        "secret": "************************************",
        "domain": "Cryptane.onmicrosoft.com"
    }
    

Lietošana

You may use the pynitrokey utility to provision a Nitrokey for an user in your tenant.

nitropy fido2 provision-credential entra -c config.json <username> --create-user

Here the <username> could be the Email ID of the user (User principal in terms of Microsoft) or a part of it till before the @ sign. The --create-user flag directs the tool to create the user if it does not exist in the Entra Tenant.

$ nitropy fido2 provision-credential entra -c config.json aditya --create-user
Command line tool to interact with Nitrokey devices 0.12.3
Warning: It is recommended to execute nitropy with admin privileges to be able to access Nitrokey 3 and Nitrokey FIDO 2 devices.
Waiting 5 secs for Graph API to update
User aditya created on Entra
Enter PIN:
Touch your authenticator device now...
Entra credential for aditya pre-registered on NK3 A56F0 with Credential ID owBYLNXsrDZ104I2MyCtuxmXKAd0Um56t3Byx5VfMz-Vs1Azy1re4Rdf-foMsc7vAUw7lJgCoG1VSdl2mBoCUHWGpTH-YkjEJ4UC4YlIEdk1.

Verification

Lietotājs var izmantot nesen aktivizēto Nitrokey, lai pieteiktos savā Microsoft kontā. Sekojiet saitei , lai apskatītu piemēru, kā pieteikties Microsoft kontā ar Nitrokey, lai pieteiktos, izmantojot šo nesen aktivizēto Nitrokey.

Jūs varat pārbaudīt piešķirtās piekļuves tiesības Entra administratora portālā, izpildot šos soļus.

  1. Entra administrācijas centrā kreisajā panelī atveriet opciju „Lietotāji”.

    alt
  2. If the user was created with the --create-user flag you may be able to find the entry on the list. If it is a pre-existing user, it would also be there. Click on the user to which the credential was enrolled.

    alt
  3. Click on Authentication methods on the user blade.

    alt
  4. Būs redzama reģistrētā piekļuves informācija ar pirmajiem 5 Nitrokey UUID simboliem. Lai apskatītu sīkāku informāciju par reģistrēto piekļuves informāciju, varat noklikšķināt uz trīs punktiņiem un pēc tam uz „Skatīt detaļas”.

    alt
  5. Būtu redzama papildu informācija par šīm apliecībām. Jūs varat pārbaudīt to derīgumu.

    alt