-
Notifications
You must be signed in to change notification settings - Fork 0
Microsoft Entra ID Device Code Login
Takashi Shinohara edited this page Aug 31, 2021
·
1 revision
Device Code Login is a method that allows users to authenticate via a web browser using a code provided by the application. This approach is required for users who have Multi-Factor Authentication (MFA) enabled.
-
Start a PowerShell 7 prompt.
-
Run the
Connect-KshSitecmdlet.
Connect-KshSite -Url 'https://<tenantname>.sharepoint.com' -ClientId '<clientid>'- When a warning message is displayed, start a web browser (Edge, Chrome, Firefox, etc.) and open the page.
WARNING: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <devicecode> to authenticate.
-
Enter the device code displayed in the warning message.
-
Enter the username and click Next.
-
Enter the password and click Sign in.
-
If MFA is enabled, approve the request on your mobile device.
-
Close the browser window.