Lets create the values noted above for our mobile azure site – an app already registered in our AAD tenant.
so app, better known as https://friday345.azure-mobile.net/login/aad
has from azure portal:
client id = 6a4cb16d-329a-4402-a1de-7c53b816c2ae
appsecret = VqTpOe4NOsYXPlCczaCLcRIO9RLfD7A/Yvf8Qqeqb/s=
we also grant our app lots of permissions
From graph explorer, we login using our directory name
and I think the objectid we want is that marked, above:
In the code, this all becomes
We see the graph code get our user.