Microsoft Entra ID
Authentication

Quickstart Native Authentication Macos Sign In

In brief

The documentation page for configuring and testing the Microsoft Entra External ID native authentication macOS sample app was deleted.

What Entra admins need to know

Administrators and developers using this guide will need to account for its removal when referencing macOS sample setup instructions. No administrator action is stated.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

deleted file mode 100644

title: Sign in users in sample macOS (Swift) app by using native authentication description: Learn how to configure macOS (Swift) sample app to sign up and sign in using Microsoft Entra External ID.

manager: pmwongera

ms.service: identity-platform

ms.subservice: external ms.topic: how-to ms.date: 11/17/2025 ms.custom: #Customer intent: As a dev, devops, I want to learn about how to configure native authentication macOS sample app to sign up and sign in scenarios using Microsoft Entra External ID.

Sign in users in sample macOS app by using native authentication

[!INCLUDE applies-to-external-only]

This guide shows how to run an macOS sample application that demonstrates sign-up and sign in scenarios using Microsoft Entra External ID.

In this article, you learn how to:

  • Enable public client and native authentication flows.
  • Update a sample native macOS application to use your own external tenant details.
  • Run and test the sample native macOS application.

Prerequisites

Enable public client and native authentication flows

[!INCLUDE Enable public client and native authentication]

Clone sample macOS application

  1. Open Terminal and navigate to a directory where you want to keep the code.

  2. Clone the macOS application from GitHub by running the following command:

    git clone https://github.com/Azure-Samples/ms-identity-ciam-native-auth-macos-sample.git
    
  3. Navigate to the directory where the repo was cloned:

    cd ms-identity-ciam-native-auth-macos-sample
    

Configure the sample macOS application

  1. In Xcode, open NativeAuthSampleAppMacOS.xcodeproj project.

  2. Open NativeAuthSampleAppMacOS/Configuration.swift file.

  3. Find the placeholder:

    • Enter_the_Application_Id_Here and replace it with the Application (client) ID of the app you registered earlier.
    • Enter_the_Tenant_Subdomain_Here and replace it with the Directory (tenant) subdomain. For example, if your tenant primary domain is contoso.onmicrosoft.com, use contoso. If you don't have your tenant subdomain, learn how to read your tenant details.

Run and test sample macOS application

To build and run your code, select Run from the Product menu in Xcode. After a successful build, Xcode will launch the sample app in the Simulator.

:::image type="content" source="media/native-authentication/macos/native-auth-sign-in-sign-up-password-macos.png" alt-text="Screenshot of user prompt to enter email and password in macOS app." lightbox="media/native-authentication/macos/native-auth-sign-in-sign-up-password-expanded-macos.png":::

This guide tests Email and password usage. Enter a valid email address and password, select Sign Up, and launch the submit code screen:

:::image type="content" source="media/native-authentication/macos/enter-one-time-pass-code-macos.png" alt-text="Screenshot of user prompt to enter one-time passcode (OTP) in macOS app." lightbox="media/native-authentication/macos/enter-one-time-pass-code-expanded-macos.png":::

After you enter your email address on the previous screen, the application will send a verification code to it. Once you submit the received code, the application takes you back to the previous screen and automatically signs you in.

Enable sign-in with an alias or username

[!INCLUDE Enable sign-in with an alias or username]

Next steps

Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…