Giter Club home page Giter Club logo

Comments (5)

JonPSmith avatar JonPSmith commented on June 29, 2024

Sorry, I found the answer. The Windows Azure PowerShell can get it, although in my case it gave the wrong TenantId (see this thread on Azure support forum about my problem).

As I explained in the forum post I got the TenantId by logging in to the Azure portal, selecting the Active Directory I am interested in and then copy the Tenant ID out of the url e.g. https://manage.windowsazure.com/<your account>#Workspaces/ActiveDirectoryExtension/Directory/<THIS IS THE TENANTID>/directoryConfigure

I have left this open as you might like to update the README

from active-directory-dotnet-graphapi-web.

dstrockis avatar dstrockis commented on June 29, 2024

@azmirza I think it would be better to get the tenantId from the claims rather than config. Happy to make some edits when I find some time. Regardless, we need to keep the readmes updated. Let's see who gets to it first....

from active-directory-dotnet-graphapi-web.

dstrockis avatar dstrockis commented on June 29, 2024

Also, we could just use the tenant domain instead of tenantId, yeah?

from active-directory-dotnet-graphapi-web.

JonPSmith avatar JonPSmith commented on June 29, 2024

Hi @dstrockis. Yep, I think changing over to getting the TenantId from the claim is a better idea. Makes it more general.

from active-directory-dotnet-graphapi-web.

viperguynaz avatar viperguynaz commented on June 29, 2024

You can also find the tenantId in the Fed Metadata - https://login.windows.net/{tenant}/FederationMetadata/2007-06/FederationMetadata.xml - entityId attribute in the root

from active-directory-dotnet-graphapi-web.

Related Issues (20)

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.