Zitadel icon

Zitadel

Interact with the Zitadel API

verifyU2FRegistration

AI-generated

Overview

This node integrates with the Zitadel API to perform various operations across multiple services such as UserService, OrganizationService, AuthService, ManagementService, AdminService, ZITADELActions, and UserSchemaService. Specifically, for the verifyU2FRegistration operation under the UserService, it verifies a user's U2F (Universal 2nd Factor) registration by sending the required user ID, U2F device ID, public key credential, and token name to the Zitadel backend.

Common scenarios where this node is beneficial include:

  • Enhancing security by verifying U2F device registrations during multi-factor authentication setup.
  • Automating user security workflows in identity management systems.
  • Integrating Zitadel's identity and access management features into custom automation pipelines.

Practical example:

  • A company uses Zitadel for identity management and wants to automate verification of users' U2F devices when they register new security tokens. This node can be used in an n8n workflow to verify each U2F registration automatically.

Properties

Name Meaning
Service The Zitadel service to interact with. Options: UserService, OrganizationService, AuthService, ManagementService, AdminService, ZITADELActions, UserSchemaService. Default is UserService.
Operation The specific operation to perform on the selected service. For UserService includes verifyU2FRegistration.
userId The unique identifier of the user whose U2F registration is being verified. Required for verifyU2FRegistration in UserService.
u2fId The identifier of the U2F device/token to verify. Required for verifyU2FRegistration in UserService.
publicKeyCredential The public key credential string associated with the U2F device. Required for verifyU2FRegistration in UserService.
tokenName The name assigned to the U2F token. Required for verifyU2FRegistration in UserService.

Output

The node outputs a JSON object containing the response from the Zitadel API corresponding to the invoked operation. For verifyU2FRegistration, the output JSON will contain the verification result details returned by the Zitadel UserService.

No binary data output is indicated or handled by this node.

Example output structure (simplified):

{
  "verified": true,
  "userId": "string",
  "u2fId": "string",
  "tokenName": "string",
  "message": "Verification successful"
}

(Note: Actual fields depend on Zitadel API response.)

Dependencies

  • Requires an API authentication token (Personal Access Token) for Zitadel, provided via node credentials.
  • Connects to the Zitadel API endpoint at https://zitadel.studentcouncil.dk.
  • Uses gRPC client libraries internally to communicate with Zitadel services.
  • No additional external dependencies beyond the Zitadel API and its authentication.

Troubleshooting

  • Invalid Credentials: If the API token is missing or invalid, the node will fail to authenticate. Ensure the correct API key/token is configured in the node credentials.
  • Malformed Input: The node attempts to parse input parameters as JSON if possible; incorrect formatting may cause errors. Provide valid JSON strings or plain strings as expected.
  • Operation Not Found: Selecting an unsupported operation for a service will result in no action. Verify that the operation name matches those supported by the selected service.
  • Network Issues: Connectivity problems to the Zitadel API endpoint will cause request failures. Check network access and endpoint availability.
  • Missing Required Parameters: For verifyU2FRegistration, all required fields (userId, u2fId, publicKeyCredential, tokenName) must be provided; otherwise, the API call will fail.

Links and References

Discussion