Skip to content

valnav/Azure-AD-B2C-App-Graph

Repository files navigation

This sample is for preview purpose only and not supported for prodcution scenarios.

Manage V2 Apps for consumption in B2C

Features

This sample demonstrates the following:

  • Create1 a V2 App (which can be used in B2C) using Microsoft Graph Apis
  • Create2 a V2 App (which can be used in B2C) using Microsoft Graph and AADGraph Apis.
  • List all v2 apps in the tenant using MSGraph Beta apis

Getting Started

Quickstart

Create global administrator

  • An global administrator account is required to run admin-level operations and to consent to application permissions. (for example: admin@myb2ctenant.onmicrosoft.com)

Register the delegated permissions application

  1. Sign in to the Application Registration Portal using your Microsoft account.
  2. Select Add an app, and enter a friendly name for the application (such as Console App for Microsoft Graph (Delegated perms)). Click Create.
  3. On the application registration page, select Add Platform. Select the Native App tile and save your change. The delegated permissions operations in this sample use permissions that are specified in the AuthenticationHelper.cs file. This is why you don't need to assign any permissions to the app on this page.
  4. Open the solution and then the Constants.cs file in Visual Studio.
  5. Make the Application Id value for this app the value of the ClientIdForUserAuthn string.
  6. Update Tenant with the name of your tenant. (for example: myb2ctenantname.onmicrosoft.com)

Build and run the sample

  1. Open the sample solution in Visual Studio.
  2. Build the sample.
  3. Using cmd or PowerShell, navigate to /bin/Debug. Run the executable B2CAppGraph.exe.
  4. Sign in as a global administrator. (for example: admin@myb2ctenant.onmicrosoft.com)
  5. The output will show the results of calling the Graph API .

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages