Skip to main content
Account
Lesson 8 of 9

Passwords, Passkeys, and MFA

Configure password policies, implement passwordless authentication with passkeys, and set up multi-factor authentication

Passwords, Passkeys, and MFA

Multiple Authentication Methods in Zitadel

In this video, we’re going to take a look at something very simple, but also important: allowing people to register and login to your application using Zitadel with multiple methods. We’ll cover username and password authentication, Passkeys, and explore the other options available in the Zitadel console.

Getting Started with Identity Providers

When you first open your Zitadel Cloud console, you’ll find the default settings for your instance. If you click on Identity Providers, you’ll see that there are no third-party setups initially - no Google, GitHub, or other providers configured yet.

For third-party providers like GitHub, you can click on them to get the configuration details where you’ll need to add your client ID and secret. This setup is especially important when running your own Zitadel instance, as it’s often crucial to piggyback onto existing authentication providers. We’ll be covering social login providers in detail in the next video.

Configuring Password Authentication

Let’s start with the basics: how can we allow people to log in with their username and password? And even better, can we enable passwordless Passkey-based login?

Good news: by default, passwordless login is enabled and supports:

  • Fingerprint authentication
  • Security keys
  • Face ID
  • Other biometric methods

Enabling Username and Password Login

To enable traditional password-based authentication:

  1. Navigate to your instance’s default settings
  2. Find the Login Behavior and Security section
  3. Enable Username and Password authentication
  4. Check that User Registration is allowed
  5. Click Save

You’ll also find configuration options for:

  • Password complexity requirements
  • Password lifetime policies
  • Secret rotation settings
  • Login and registration restrictions

Understanding Organization vs Instance Settings

One crucial point that often trips up new users: Zitadel has a hierarchy of settings.

For example, if you disable user registration at the instance level but it’s still enabled at the organization level, users can still register. Always check both levels when configuring authentication:

  1. Instance Settings: Default settings for your entire Zitadel instance
  2. Organization Settings: Can override instance defaults for specific organizations

User Registration Flow

With registration enabled, here’s the typical user flow:

  1. User navigates to the login page
  2. Clicks Register to create a new account
  3. Fills in the registration form:
    • Name
    • Email address
    • Password (if password authentication is enabled)
  4. Confirms email address via verification code
  5. Optionally sets up second factor authentication
  6. Gains access to their user profile

The entire process is handled by Zitadel’s built-in UI - you don’t need to build any custom forms initially.

Adding Passwordless Authentication

Once a user has registered, they can add passwordless authentication methods:

Setting Up a Passkey

  1. Navigate to Password and Security in the user profile
  2. Click Add Method
  3. Choose Use my own device
  4. Give the Passkey a descriptive name
  5. Follow your browser/device prompts to create the Passkey
  6. The Passkey can be stored in:
    • Your device’s secure enclave
    • Password managers like 1Password or Bitwarden
    • Hardware security keys

After setting up a Passkey, users can log in without entering a password - they’ll just need to authenticate with their biometric or security key.

Multi-Factor Authentication (MFA)

Zitadel supports multiple second factors for enhanced security:

TOTP (Time-based One-Time Passwords)

Users can scan a QR code with authenticator apps like:

  • Google Authenticator
  • Microsoft Authenticator
  • 1Password
  • Authy

FIDO2/WebAuthn Keys

Hardware security keys provide the strongest second factor:

  • YubiKey
  • Google Titan
  • Any FIDO2-compliant key

Login V2 and Custom Authentication UI

While Zitadel provides a complete authentication UI out of the box, you might want something more integrated with your application. That’s where Login V2 comes in.

To enable Login V2:

  1. Go to Default Settings
  2. Navigate to Features
  3. Scroll down to find Login V2
  4. Enable the feature

You can then either:

  • Fork Zitadel’s TypeScript reference implementation
  • Build your own implementation using the Session API directly

We’ll cover Login V2 in detail in an upcoming video, as there’s a lot to explore with custom authentication flows.

Best Practices

For Development

  • Start with username/password for simplicity
  • Enable all authentication methods to test integration
  • Use Zitadel’s default UI to prototype quickly

For Production

  • Enable Passkeys for better user experience
  • Require MFA for sensitive applications
  • Consider disabling password authentication entirely for maximum security
  • Implement proper password policies if passwords are required
  • Use organization-specific settings for multi-tenant applications

What’s Next?

In the next video, we’ll take a look at configuring third-party OAuth providers like GitHub and Google for social login. This allows users to authenticate with accounts they already have, reducing friction in the registration process.

After that, we’ll dive deep into Login V2 and building custom authentication experiences that seamlessly integrate with your application’s design.

Summary

Zitadel provides flexible authentication options out of the box:

  • Traditional username and password
  • Modern passwordless authentication with Passkeys
  • Multi-factor authentication with TOTP and hardware keys
  • Customizable registration and login flows

The key is understanding the settings hierarchy (instance vs organization) and choosing the right authentication methods for your use case. Start simple with the defaults, then customize as your requirements evolve.

Transcript

Generated from English captions. Select a timestamp to jump to that moment.

0:01 David Flanagan: Hello and welcome back. In this video, we're gonna be taking a look at something very simple, but also important, and that is allowing people to register and login to your application using Zitadel. In this video, we'll take a look at doing that with multiple methods. Username and password, Passkeys, and we'll give you an idea of some of the other options that are available by exploring the Zitadel console. Let's dive right in. So here we are on our Zitadel Cloud Zitadel console. Nothing has changed since our previous video. We still have a project with the Rawkode Academy Project here.

0:58 We can click on it and you'll see the Astro example from the previous video and a React one from the P PKCE video, and I still can't say that. What's important today is we're gonna dive into the default sentence of our Adele instance because we want to take a look at the different identity providers and authentication methods. If you click on identity providers, you'll see that there are no third party setups here. We're not doing Google, not doing GitHub or anything like that. However, we can click on GitHub, for instance, where we can get the

1:30 client ID and secret to drop in here. Of course, this kinda setup is extremely important when you're running your own Z because more often it is important to piggyback onto an existing authentication provider. We'll be looking at that in the next video. So when you're done with this one, just scroll below and get started. Well, we are gonna start a lot simpler today, and that is how can we just allow people to log in with their username and password? Not only that, can we allow Passwordless Pass key based login. Fortunately for us, the answer is yes.

2:12 By default, passwordless login is enabled and it does support fingerprint, security keys, face ID, and others. So pretty much everything that we need to get started with PAs keys. We have some multifactor sentence. We can force that for all local users, or all users in general, but we'll come back to this when we take a look at enterprise patterns in the future. You can then configure the password checks, the lifetimes for secrets, and then a whole bunch of settings down the bottom for what type of logins and registrations to allow. As you can see here, I have allowed username and passwords.

2:48 Gotcha. This isn't on by default, so you will need to enable this for your news, Azure, cloud, or self-hosted instance. Not only that, you'll need to check that user, should that user registrations are also allowed. We'll disable that for a moment just so we can see it on my other container. Uh, where we'll, where we can see the actual login form that we will use to log in and register. We are gonna disable external login because we're not using that for this video, and we'll hit save. Now over here I have a Firefox container tab where I'm not

3:25 logged into this Zitadel instance. I could type in an email address like so, where it tells me the user cannot be found. We can click register where we can fill in a nice, simple form to say that I am David Flanagan and I'll just use an address that I know isn't gonna break the system and a demo password that I use all the time. We accept the terms of service and the privacy policy. We now need to confirm our email address, so I'll jump over here and grab the code like so. We can click next.

4:15 We can choose to set up a second factor. We'll take a look at this in just a moment. For now, we're gonna hit skip. And here we are. This is now my new user profile using the Zitadel console. So far, we haven't integrated with our own application or provide any bespoke arbitrary login to styles of our own. I can come into here where I can change my password. We can add a password list, authentication method, which we'll do in just a moment. And I can add a second factor if I had other identity providers configured such as Google or GitHub, that we'll see in a subsequent video.

4:52 I can also connect my accounts here. We can see authorizations to see if I have access to anything above standard privileges, which I do not, and I have no memberships either. There's also the ability to add custom metadata, although this has to come from a top down. And we'll take a look at using metadata and user schemas. And again, subsequent videos, we have a lot to cover in this course. So let's go to password and security. We can now say, let's add a method and I can choose to use my own device and I give it a name.

5:32 I'm going to store this PAs key to my one password, Here we can see that I can create a new one, save it to my vault. And we'll hit refresh. And now we have our PAs key. I can also add a second factor, which could be a Fido key or we can have it scan our QR code. Really, really is that simple. And again, I haven't shipped a single byte of H-T-M-L-C-S-S or JavaScript. This is all provided by the Zitadel Console. We can now log out and click sign in again. Now it remembers that I have been here before and I can log

6:21 in with Passwordless like so. I really love it when things are just that simple and just work. Now I see where we see which of you were paying attention. Did you see what just happened? Let's take a closer look. The. If we head back over to the console, you'll remember that just a moment ago, we were configuring this, these configuring just a moment ago. We were configuring these settings and we actually disabled user registration. However, we also just registered a user, and I'm pointing this out because this is something that tripped me up more than once when I started

7:10 adopting Zitadel 18 months ago. When I came to this setting page, I came to the default settings. This is your instance, wide settings that apply to all organizations when they have nothing set themselves or they inherit from the instance. That means if we click back here, go to organizations, click on login and access like, so we still have no identity providers, but if we click on our login behavior and security. And scroll down, you'll see that user registration is still allowed, username and password is allowed. External login is allowed. These settings are very different to what we have configured at

7:53 the default instance level. Now, if we turn off user registration and log out, a register button is gone. That's just something to bear in mind. There's default instance, wide settings, and each organization can be configured independently in isolation on its own. That's three ways of saying the exact same thing, but I hope it gets the point across. Now, I do want to take a look at one more setting before we wrap this up. And to do that we are gonna go back to default settings. This is an instance wide configuration. We can go to features and scroll down to the bottom where we will see

8:56 that we have access to login V two. Now, we're not gonna take a look at it in this video. But we will in two videos time. So again, scroll down a few and you'll see the link. So far when we've been taking a look at creating users and registering users, we've been doing it from the Zitadel console, and that's great for getting started and providing something out of the box, but you may want something that integrates more natively with your application user login V two is a way to do that. It hooks in to the Zitadel session.

9:29 API. They provide a TypeScript project that you can fork and maintain on your own, or you can use the session API directly from your own application. There's a lot to cover in that video, so make sure you set some time to watch that soon. So that's it for this video. We've taken a look at registering an account with a username and password, logging out, logging back in, and then add in some other authentication methods. We added a passkey and multifactor authentication via A-T-O-T-P within my one password vault. Join us in the next video as we take a look at hooking zadel up

10:10 to GitHub for OIDC authentication. We'll see you next time.

Course curriculum (9 lessons)
  1. 01. Introduction
  2. 02. Prerequisites
  3. 03. How to Install Zitadel with Docker Compose (Step-by-Step)
  4. 04. Installing Zitadel on Kubernetes with Helm
  5. 05. Zitadel Cloud
  6. 06. Your First Application
  7. 07. Integrating with an Astro Application
  8. 08. Passwords, Passkeys, and MFA
  9. 09. Configuring OAuth Providers (Google, GitHub, etc.)

Loading optional course email signup. If it does not load, reload this lesson to retry. Signup requires JavaScript; all lesson content remains available without signing up.