GCCHigh.Extensions.Identity 6.9.800

There is a newer version of this package available.
See the version list below for details.
dotnet add package GCCHigh.Extensions.Identity --version 6.9.800                
NuGet\Install-Package GCCHigh.Extensions.Identity -Version 6.9.800                
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="GCCHigh.Extensions.Identity" Version="6.9.800" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GCCHigh.Extensions.Identity --version 6.9.800                
#r "nuget: GCCHigh.Extensions.Identity, 6.9.800"                
#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 GCCHigh.Extensions.Identity as a Cake Addin
#addin nuget:?package=GCCHigh.Extensions.Identity&version=6.9.800

// Install GCCHigh.Extensions.Identity as a Cake Tool
#tool nuget:?package=GCCHigh.Extensions.Identity&version=6.9.800                

GCCHigh.Extensions.Identity contains methods to make modern OAuth2 authentication in Azure a breeze.

icon GIF GIF License Maintained GitHub Release NuGet Badge Repo Size Closed Issues Open Issues Contributors Languages Gitter Discord Twitter

The following classes have been exposed:

- Extensions.TenantConfig
- Extensions.Constants
- Extensions.Identity.App
- Extensions.Identity.Auth
- Extensions.Identity.AuthMan
- Extensions.Identity.Cert
- Extensions.Identity.Scopes

with these methods:

  • Auth()

    Multiple overloaded constructors allows for the construction and<br> population of the class instance properties. Each instance internally<br> manages its access token and renews it 5 minutes prior to expiration.<br> The class exposes the following useful objects:<br> GraphClient - Authenticated Microsoft.Graph.ServiceClient ready for use.<br> GraphBetaClient - Authenticated Microsoft.Graph.ServiceClient pointing<br> to the /beta endpoint and ready for use.<br> HttpClient - Authenticated Microsoft.Net.Http.HttpClient ready for use.<br> The HttpClient is useful when making direct REST calls.<br>

  • AuthMan()

    This class maintains and exposes the following two important objects:<br> ActiveAuth - The currently active Auth object.<br> AuthStack - A dictionary of all valid Auth objects.<br> The ActiveAuth object of type Auth which represents the currently active<br> Auth context in use. The AuthStack which is a dictionary containing<br> all valid Auth objects. When a request for a new Auth is made<br> through GetAuth(), the AuthStack is checked for a match. If the<br> matching Auth object is already in the AuthStack, it is simply reused<br> instead of expending the cycles and resources to generate a new one.<br> Because the Auth class maintains its access token internally, the Auth<br> object is always valid. The greatly improves performance especially in<br> cases where Auth switching between Graph and SharePoint happens regularly.<br>

  • GetAuth()

    Multiple overloads allows for the retrieval of a fully constructed Auth<br> object which is then stored in the managed AuthStack. Future requests<br> for the same Auth are then simply popped from the AuthStack for use.<br>

  • GetApp()

    Multiple overloads allows the retrieval of either an authenticated<br> IConfidentialClientApplication or IPublicClientApplication.<br>

  • GetCertByThumbprint(string thumbPrint)

    Returns a X509Certificate2 if available, given the thumbPrint string.<br> It will first attempt to load the cert from the CurrentUser context.<br> If that fails, it will attempt to load the cert from the<br> LocalMachine context. If this fails, it will return null.<br> For example:<br> var cert = GetCertByThumbPrint(certificateThumbPrint)<br> will return the X509Certificate2 or null.<br> For more fine grained control, an overload exist that allows the<br> specification of a targeted StoreName and StoreLocation.<br>

  • GetScopes(ScopeType scopeType)

    Returns the string array representing the scopes for the given scopeType.

  • GetScopeType(string[] scopes)

    Returns the ScopeType given the string array of scopes.

Visitor Count

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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 GCCHigh.Extensions.Identity:

Package Downloads
GCCHigh.Extensions.Graph

GCCHigh.Extensions.Graph contains Graph extension methods for C# specifically targeted to the GCCHigh M365 environment. GCCHigh.Extensions supports all versions of.NET from 4.6.2 through 8.0.

GitHub repositories

This package is not used by any popular GitHub repositories.

Rebranded Extensions.Identity as GCCHigh.Extensions.Identity.