---
schema_version: "1"
id: aaeefd9e6c3ce17adf0fe6ed1b8ea035709322fc56681201c710d3522d70dbbc
title: MyDomainDiscoverableLogin
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_mydomaindiscoverablelogin.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mydomaindiscoverablelogin.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f5c285d550eabe2a447eaadecc2cd2ebbe5ea81786607860849d24cf6c4e0e8e
description: Represents the configuration settings when the My Domain login page type is Discovery. Login Discovery provides an identity-first login experience, where the login page contains the identifier field only. Based on the identifier entered, a handler determines how to authenticate the user. This type extends the Metadata metadata type and inherits its fullName field.
---
# MyDomainDiscoverableLogin

Represents the configuration settings when the My Domain login page type is Discovery. Login Discovery provides an identity-first login experience, where the login page contains the identifier field only. Based on the identifier entered, a handler determines how to authenticate the user. This type extends the Metadata metadata type and inherits its fullName field.

## File Suffix and Directory Location

MyDomainDiscoverableLogin components have the suffix .myDomainDiscoverableLogin in the myDomainDiscoverableLogins folder.

## Version

MyDomainDiscoverableLogin components are available in API version 48.0 and later.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| apexHandler | string | Required. The Apex handler class that contains the Discovery authentication logic. |
| executeApexHandlerAs | string | The user who is executing the handler. Requires the Manage User permission. |
| usernameLabel | string | The login prompt when the My Domain login page type is Discovery. This label supports localization with custom labels. |

## Declarative Metadata Sample Definition

The following is an example of a MyDomainDiscoverableLogin component.

<?xml version="1.0" encoding="UTF-8"?>
<MyDomainDiscoverableLogin xmlns="http://soap.sforce.com/2006/04/metadata">
    <apexHandler\>MyDomainDiscLoginHandler</apexHandler\>
    <executeApexHandlerAs\>executeUser@example.com</executeApexHandlerAs\>
    <usernameLabel\>Enter your email</usernameLabel\>
</MyDomainDiscoverableLogin\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>MyDomainDiscoverableLogin</name\>
    </types\>
    <version\>48.0</version\>
</Package\>

## Usage

Use this type to access the My Domain Login Discovery Page. This type of login page prompts users to identity themselves with an email address, phone number, or custom identifier. My Domain Login Discovery performs an interview-based login process, where users are prompted to provide identity for authentication. For example, users receive a verification code that they enter to complete the login process.

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).