MgGraphCommunity
1.0.0
A community-maintained drop-in alternative to Connect-MgGraph. Pure-PowerShell OAuth 2.0 flows (PKCE, device code, client credentials, certificate, managed identity, BYO token). Bypasses WAM on Windows so interactive sign-in actually works. Tokens kept in memory by default; persistent cache is opt-in.
Minimum PowerShell version
7.0
Installation Options
Owners
Copyright
(c) MgGraphCommunity contributors. Licensed under MIT.
Package Details
Author(s)
- MgGraphCommunity contributors
Tags
Microsoft Graph MgGraph Authentication OAuth PKCE Intune Entra EntraID Community
Functions
Connect-MgGraphCommunity Disconnect-MgGraphCommunity Get-MgGraphCommunityContext
Dependencies
-
- Microsoft.Graph.Authentication (>= 2.0.0)
Release Notes
1.0.0
- Initial community release
- Interactive (PKCE + loopback), DeviceCode, ClientSecret, Certificate (X509/Thumbprint/Subject), AccessToken, ManagedIdentity flows
- Environment selection: Global, USGov, USGovDoD, China
- In-memory token cache by default; opt-in DPAPI-encrypted persistence via -PersistRefreshToken
- Hands tokens to Connect-MgGraph -AccessToken so Microsoft.Graph.* cmdlets keep working
- Pure PowerShell, no MSAL DLL hunting, no compiled C#
FileList
- MgGraphCommunity.nuspec
- CHANGELOG.md
- LICENSE
- MgGraphCommunity.psd1
- MgGraphCommunity.psm1
- Private\Auth\Invoke-MgcClientCertificateAuth.ps1
- Private\Auth\Invoke-MgcClientSecretAuth.ps1
- Private\Auth\Invoke-MgcDeviceCodeAuth.ps1
- Private\Auth\Invoke-MgcInteractiveAuth.ps1
- Private\Auth\Invoke-MgcManagedIdentityAuth.ps1
- Private\Auth\Invoke-MgcRefreshTokenAuth.ps1
- Private\Cache\Clear-MgcTokenCache.ps1
- Private\Cache\Get-MgcTokenCacheEntry.ps1
- Private\Cache\Save-MgcTokenCache.ps1
- Private\Common\ConvertFrom-MgcJwt.ps1
- Private\Common\Get-MgcFreePort.ps1
- Private\Common\Invoke-MgcTokenEndpoint.ps1
- Private\Common\New-MgcClientAssertion.ps1
- Private\Common\New-MgcPkcePair.ps1
- Private\Common\Resolve-MgcAuthority.ps1
- Private\Common\Resolve-MgcScopes.ps1
- Private\Sdk\Send-MgcTokenToSdk.ps1
- Private\State\Set-MgcConnectionContext.ps1
- Private\State\Show-MgcWelcomeBanner.ps1
- Public\Connect-MgGraphCommunity.ps1
- Public\Disconnect-MgGraphCommunity.ps1
- Public\Get-MgGraphCommunityContext.ps1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.3.0 | 0 | 5/25/2026 |
| 1.2.1 | 0 | 5/25/2026 |
| 1.2.0 | 0 | 5/25/2026 |
| 1.1.0 | 0 | 5/25/2026 |
| 1.0.0 (current version) | 0 | 5/25/2026 |