microsoft / HealthClinic.biz

The samples contained in this repo are used to present an end-to-end demo scenario based on a fictitious B2B and multitenant system, named “HealthClinic.biz” that provides different websites, mobile apps, desktop apps, wearable apps, and services running on the latest Microsoft and open technologies aligned with announcements to showcase during the Connect(); 2015 event. The current published version works with Visual Studio 2015 Update 1 RC bits and ASP.NET 5.0 Beta 8. The final version used at Connect(); 2015 will be published soon.
http://aka.ms/Connect
MIT License
496 stars 292 forks source link

AADSettings? #12

Closed Onjay closed 8 years ago

Onjay commented 8 years ago

The Native Desktops apps appears to require Azure Active Directory credentials in order to build. Should I set this up under my Default Active Directory, or would it make more sense to create a new active directory? I used the 10_Demos_Deployment to deploy to Azure, but I don't see the credentials anywhere so I'm assuming I need to create them in Active Directory by adding an app?

Exception thrown: 'System.UriFormatException' in System.dll Exception thrown: 'System.TypeInitializationException' in MyHealth.Client.Core.dll Exception thrown: 'Autofac.Core.DependencyResolutionException' in Autofac.dll Exception thrown: 'Autofac.Core.DependencyResolutionException' in Autofac.dll

static SecuritySettings AADSettings = new SecuritySettings() { ClientId = "YOUR_AAD_CLIENT_ID", RedirectUri = new Uri("YOUR_AAD_REDIRECT_URI"), Authority = "YOUR_AAD_AUTHORITY", Scope = "https://graph.microsoft.com", Domain = "YOUR_AAD_DOMAIN" };

ibonilm commented 8 years ago

WPF doesn´t requiere AAD authentication. It was a bug in the default information.

Please, sync the repo and try again. I have update the AppSettings.cs file.

Onjay commented 8 years ago

That worked Ibonilm!