Skip to main content

Masterful Authentication: The MF Authentication API

The MF Authentication API provides a robust and scalable solution for modern authentication needs. Learn about its interface policy, API master structure, and how it streamlines software integration for enhanced security.

Masterful Authentication: The MF Authentication API

Contents

In this guide

Jump to the part you need.

Masterful Authentication: The MF Authentication API

In today's digital landscape, robust authentication is paramount. The MF Authentication API offers a comprehensive solution for verifying users and securing access to applications and services. This post delves into the technical details of the MF Authentication API, exploring its interface policy, API master structure capabilities, and how it simplifies software integration. We'll cover the underlying mechanisms, including the use of public affirmation keys, and discuss best practices for implementation.

Key Takeaway 1: The MF Authentication API leverages a modular design enabling flexible integration into diverse systems.

Key Takeaway 2: Asynchronous request-response patterns enhance scalability and resilience.

Key Takeaway 3: Robust key management with public affirmation keys ensures secure communication and trust.

Key Takeaway 4: The API's granular permissioning controls allow developers to define precise access rights.

Understanding the Interface Policy

The MF Authentication API adopts a RESTful interface policy, using standard HTTP methods (GET, POST, PUT, DELETE) for interaction. All communications are conducted over HTTPS to ensure confidentiality and integrity. The API is designed to be stateless, meaning each request contains all the necessary information for processing. This simplifies scaling and improves reliability. Data is exchanged in JSON format, facilitating easy parsing and manipulation by client applications.

Crucially, the API enforces strict rate limiting to prevent abuse and ensure fair usage. Developers are allocated a specific number of requests per minute, and exceeding this limit results in HTTP 429 (Too Many Requests) errors. Detailed documentation clarifies these limits and provides guidance on optimizing request patterns. This is a critical aspect of the authentication system’s resilience.

The API Master Structure & Capabilities

The API master structure is organized around key resources, including Users, Sessions, and Permissions. Each resource has a dedicated endpoint with corresponding methods for creation, retrieval, modification, and deletion. For example, the /users endpoint allows for the creation of new user accounts, while the /sessions endpoint handles login and logout functionalities.

Key capabilities include:

  • Multi-Factor Authentication (MFA): Support for various MFA methods, including OTP, biometrics, and hardware tokens.
  • Social Login: Integration with popular social identity providers (e.g., Google, Facebook, Twitter).
  • Passwordless Authentication: Enable secure login without requiring users to remember passwords.
  • Role-Based Access Control (RBAC): Assign permissions based on user roles, controlling access to sensitive data and functionality.
  • Session Management: Securely manage user sessions, including session expiration and revocation.

The API also supports webhooks, allowing applications to receive real-time notifications about authentication events (e.g., successful login, failed login attempts, password resets). This enables proactive monitoring and incident response.

Public Affirmation Keys and Security

At the heart of the MF Authentication API’s security lies the use of public affirmation keys. These keys are used to digitally sign authentication tokens, providing assurance that the tokens haven't been tampered with during transmission. The API utilizes Elliptic Curve Cryptography (ECC) with the secp256k1 curve for key generation and signing. This provides a high level of security with relatively small key sizes. The public keys are readily available via a dedicated endpoint, allowing client applications to verify the authenticity of received tokens.

All sensitive data, including passwords and MFA codes, are securely hashed and salted using bcrypt. The API also implements robust input validation to prevent common attacks such as SQL injection and cross-site scripting (XSS). Regular security audits and penetration testing are conducted to identify and address potential vulnerabilities. Data residency options allow organizations to control where their authentication data is stored.

Streamlining Software Integration

The MF Authentication API is designed for ease of software integration. Comprehensive documentation, including interactive API explorers and code samples in multiple programming languages, is provided. Client libraries are available for popular frameworks like Node.js, Python, and Java. Didit also offers a dedicated support team to assist developers with integration challenges. The API supports both synchronous and asynchronous communication patterns. Asynchronous patterns are recommended for long-running operations, such as MFA enrollment, to avoid blocking client applications.

The API’s modular design allows developers to selectively integrate only the features they need, minimizing complexity and overhead. The use of standard protocols and data formats ensures interoperability with a wide range of systems and platforms.

How Didit Helps

Didit simplifies the implementation of secure authentication with the MF Authentication API. Our platform provides:

  • Pre-built integrations: Connect to your existing applications with minimal code.
  • Managed infrastructure: We handle the scaling, security, and maintenance of the API.
  • Expert support: Our team is available to assist with integration and troubleshooting.
  • Cost-effective pricing: Pay only for the features you use.

Ready to Get Started?

Ready to enhance your application’s security with the MF Authentication API? Visit our pricing page to explore our plans and sign up for a free trial. You can also explore our technical documentation for in-depth guides and API references.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.