TimHanewich.MicrosoftGraphHelper 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TimHanewich.MicrosoftGraphHelper --version 0.1.0                
NuGet\Install-Package TimHanewich.MicrosoftGraphHelper -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TimHanewich.MicrosoftGraphHelper" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TimHanewich.MicrosoftGraphHelper --version 0.1.0                
#r "nuget: TimHanewich.MicrosoftGraphHelper, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TimHanewich.MicrosoftGraphHelper as a Cake Addin
#addin nuget:?package=TimHanewich.MicrosoftGraphHelper&version=0.1.0

// Install TimHanewich.MicrosoftGraphHelper as a Cake Tool
#tool nuget:?package=TimHanewich.MicrosoftGraphHelper&version=0.1.0                

Microsoft Graph Helper

This is a .NET class library designed to assist with the Microsoft Graph Authentication process as well as with transacting with several graph modules. This library is available on NuGet as TimHanewich.MicrosoftGraphHelper.

The core class in this library is the MicrosoftGraphHelper class. After creating a new instance of MicrosoftGraphHelper, there are several inputs you make that will be used in the authentication process.

  • Tenant ID
  • Client ID
  • Scope
  • Redirect URL After inputting these you can then assemble the URL that users will need to navigate to in order to provide consent. Use the AssembleAuthorizationUrl method to assemble this consent URL.

Step 2: Use Authorization code to gain Access

After the user provides consent, they will be redirected to the redirect URL you specified in the request (and registered app in Azure). You will find the code parameter attached the URL. This code parameter is what is used to gain an access token. And the access token is what you use to transact with the graph API service. To convert this code variable to an access token, provide this to the GetAccessTokenAsync method. Your access token will be stored in the MicrosoftGraphTokenPayload class as the LastReceivedTokenPayload property.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TimHanewich.MicrosoftGraphHelper:

Package Downloads
Aletheia

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 575 5/24/2022
0.2.0 434 4/9/2021
0.1.1 29,276 4/7/2021
0.1.0 326 4/7/2021