# Web login with username
# Use case
You are looking for a secure way for your end-users to log in to your website, but without the need for passwords. You want to achieve this whilst still offering a positive and seamless user experience for your end-users.
# How it works
Meet Jane, one of your active end-users who has activated MobileID in your mobile app. Jane needs to log in to your website so that she can access your online services.
- To do this, Jane navigates to your website and arrives at the login page.
- On this page, she sees the option to log in using your mobile app. Jane enters her username and clicks on the login button.
- Within milliseconds, Jane receives a push notification on her mobile device.
- When Jane clicks on the notification, your app opens up with a message asking if she wants to log in to your website.
- Jane approves the login request using biometrics or a PIN code, and is now able to access your online services.
Success!
Jane has now securely authenticated herself with two-factor authentication using your mobile app.
# What it looks like
The following video illustrates what a web login could look like with MobileID, from the perspective of your end-user.
# Implementation
Note
This flow assumes that you are using MobileID and that the end-user has an active MobileID user and device.
There are many ways to implement MobileID for web login. The following flow is a suggestion that involves using a username and MobileID for authentication:
- The end-user visits your website and navigates to the login screen.
- The website prompts the end-user to enter their username.
- Once the end-user enters their username, the website triggers a MobileID authentication request for them.
- The end-user then receives a push notification on their mobile device from your app, asking them to approve the login attempt.
- The end-user opens the app, which displays a message asking them to approve the login to your website.
- The end-user approves the login using biometrics or a PIN code.
- MobileID verifies the authentication and sends a response to your server and app; confirming the authentication.
- Your website grants the end-user access to their account.
Using MobileID for web login is a straightforward and effective way to provide your end-users with a secure and seamless login experience.