Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample MangedClientConsoleAppSample Doesn't Work (on branch master) #32

Open
richardcox13 opened this issue Dec 14, 2018 · 3 comments
Open

Comments

@richardcox13
Copy link

It appears there is an incomplete attempt to port it to .NET Core but that won't work ([interactive isn't supported yet on .NET core)[https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/879].

To get it to work I needed to:

  • Remove the netcoreapp2.0 target
  • Include package Microsoft.VisualStudio.Services.InteractiveClient (despite step 3 of the readme saying it was in place)
  • Remove the parameterless constructor call for PlatformParameters
  • Change the base URL to be https.

(The last point took a while to find: getting unauthorised responses after authorising isn't the greatest diagnostic.)

Sample code really should be ready to run!

@richardcox13
Copy link
Author

I see branch jmarks/RemoveNetCore appears to contain most of these fixes already...

@sureshtadisetty
Copy link
Member

sureshtadisetty commented Jan 4, 2019

Still not working, get Unauthorized status code.
"message":"TF400813: The user '' is not authorized to access this resource."

@Hammurabidoug
Copy link

I am getting a StatusCode of NotFound on this sample project. The DeviceProfileSample works correctly, so I know Azure is set up correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants