UD with Azure Login

Hello again!

I’m just trying to add login funcionality to my Azure App Service Dashboard, following the steps of this manual on GitHub given from @adam.

But, I couldn’t do it successfully and I will show you step by step what I done…

  1. Create App Registration (two pictures - two steps):

(and save OAuth 2.0 authorization endpoint (v2) and Application & Tenant ID )

  1. Configure UD with this code:
$AzureADParams = @{
    ClientID = xxxxxxxxxxxxxxxxxxxxxxxxxx
    Instance = 'https://login.microsoftonline.com'
    Domain   = 'azurewebsites.net'
    TenantID = xxxxxxxxxxxxxxxxxxxxxxxxxx

$AuthenticationMethod = New-UDAuthenticationMethod @AzureADParams

$LoginPage = New-UDLoginPage -AuthenticationMethod $AuthenticationMethod -Title "AzureAD"

$HomePage = New-UDPage -Name "Home" -Content {
    New-UDHeading -Text "Hello, World!" -Size 1

$Dashboard = New-UDDashboard -Title "AZ AD" -Theme Azure -LoginPage $LoginPage -Pages @(

Start-UDDashboard -Dashboard $Dashboard -Wait

more BIO:

This is the homepage when I enter url (no login phase):

What could be my problem?


That is bizarre. Sure seems like it should work.

Can you try changing your home page to this?

$HomePage = New-UDPage -Name "Home" -Content {
    New-UDElement -Tag 'div' -Content { $User } 
    New-UDHeading -Text "Hello, World!" -Size 1

Hello again!

Enabling this check it seems that it’s working!!