Configuración de Nitrokey para Entra ID¶
Compatible Nitrokeys |
|||||||
|---|---|---|---|---|---|---|---|
✓ 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.
Configurar¶
Se requiere una aplicación de Microsoft Entra para permitir el registro programático de las credenciales de los usuarios. A continuación te ofrecemos la guía para configurarla, siempre que dispongas de los privilegios adecuados para ello.
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.
Selecciona «Nuevo registro».
Crea una nueva aplicación y asígnale un nombre. Haz clic en «Registrar».
Anota aquí el ID de cliente y el ID de inquilino. Los necesitarás más adelante. Ve a «Permisos de API» en la pestaña de la aplicación.
Click on Add a permission.
Select Microsoft Graph.
Selecciona «Permisos de la aplicación».
Search for
UserAuthenticationMethod.ReadWrite.Alland select it.
Search for
User.ReadWrite.Alland select it (Only if you want to be able to create users frompynitrokey). Click on the Add Permissions button.
Comprueba los permisos concedidos.
Haz clic en «Conceder consentimiento de administrador» y apruébalo.
Vuelve a la página de inicio de la aplicación y selecciona «Certificados y secretos» en el panel de la izquierda.
Haz clic en «Nuevo secreto de cliente»
Introduce un nombre y una fecha de caducidad, y a continuación haz clic en «Añadir».
Anota el «Client Secret» (no podrás verlo más adelante).
Haz clic en «Métodos de autenticación» en el panel de la izquierda.
Select Passkey (FIDO2).
Click on the Configure tab.
Click on Default Passkey profile
Desmarca la casilla «Exigir certificación» (solo si utilizas un Nitrokey que no cuente con la certificación de la Alianza FIDO. En el momento de redactar este documento, solo el Nitrokey 3A Mini cuenta con dicha certificación).
Click Save.
You have taken note of the Tenant ID, Client ID, Client Secret and Primary Domain as a part of the process. Make a
config.jsonfile 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" }
Uso¶
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¶
El usuario puede utilizar el Nitrokey recién configurado para iniciar sesión en su cuenta de Microsoft. Sigue el enlace . Ejemplo de inicio de sesión en Microsoft con Nitrokey para iniciar sesión con este Nitrokey recién configurado.
Puede verificar la credencial asignada desde el portal de administración de Entra siguiendo estos pasos.
Ve a la opción «Usuarios» en el panel de la izquierda del centro de administración de Entra.
If the user was created with the
--create-userflag 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.
Click on Authentication methods on the user blade.
Se mostrará la credencial registrada con los 5 primeros caracteres del UUID de Nitrokey. Puedes hacer clic en los tres puntos y, a continuación, en «Ver detalles» para consultar la información detallada sobre la credencial registrada.
Se mostraría información adicional sobre la credencial. Puede verificarla.