Giter VIP home page Giter VIP logo

active-directory-dotnet-deviceprofile's Introduction

active-directory-dotnet-deviceprofile's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

active-directory-dotnet-deviceprofile's Issues

The client has not listed any permissions for 'Microsoft Graph' in the requested permissions in the client's application registration

trying to run the sample out of the box, and I get this error when trying to authenticate

Sorry, but we’re having trouble signing you in.
AADSTS650056: Misconfigured application. This could be due to one of the following: The client has not listed any permissions for 'Microsoft Graph' in the requested permissions in the client's application registration. Or, The admin has not consented in the tenant. Or, Check the application identifier in the request to ensure it matches the configured client application identifier. Please contact your admin to fix the configuration or consent on behalf of the tenant. Client app ID: f5b5b9c9-c68b-45c5-8f57-bcf3f2f15f26.

This works with my C# WPF using Microsoft.Identity.Client;

string[] scopes = new string[] { "user.read" };
authResult = await app.AcquireTokenSilentAsync(**scopes**, accounts.FirstOrDefault());

but it doesn't look like Microsoft.IdentityModel.Clients.ActiveDirectory likes to take scopes
result = await ctx.AcquireTokenSilentAsync(resource, clientId);

Making my own native app registration multi-tenant

Quote from readme.md:

"The instructions so far leveraged the Azure AD entry for the app in our test tenant: given that the app is multitenant, anybody can run the sample against that app entry. "

How would I configure an application entry in my directory so that it is properly multi-tenant capable? Ie emulating the behavior of this app or azure cli. The Ibiza portal seems to be lacking a few settings for this.

Dead Links

https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-deviceprofile/

The here and see this document links below are 404.

If you are targeting Windows, see this document. (this readme assumes you will follow the instructions for installing ASP.NET 5 with Visual Studio, but you can also go for the standalone option).

Mac OS X

If you are targeting Mac OS X, please follow the instructions here.

Linux

If you are targeting Linux, please follow the instructions here. This sample has been tested on Ubuntu

There is no HTTP documentation for Device Code

This sample is great if you would like to work at the class / object model level, but I think it would be much better if explained the HTTP flow from first principals then into the class / object model. I think this would expand your audience significantly.

@clarkbreyman, I think you'd be interested in this as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.