{% hint style="info" %} Not available in Community Edition. {% endhint %}
To enable login with Microsoft OAuth authentication, you can use the New-UDAuthenticationMethod cmdlet to allow users to enter their Microsoft credentials to login to your dashboard.
First, you need to register your application with Microsoft. You can follow the directions here.
When registering your application, the callback URL should be: http(s)://<server:port>/signin-microsoft
Next, you need to call New-UDAuthenticationMethod and specify the AppId, AppSecret and Provider name.
$Method = New-UDAuthenticationMethod -AppId 1234 -AppSecret Abc123 -Provider Microsoft
$LoginPage = New-UDLoginPage -AuthenticationMethod $Method