Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msgraph-powershell-auth

Lightweight graph authentication, get security tokens (access/refresh) directly from the protocol by authorization code with PKCE, client credentials or refresh_token grant.

Usage

Install module from PowerShell Gallery or download release.

Examples

Interactive Code flow that will return access_token and refresh_token.

Interactive Code flow using integrated windows authentication.

client credentials

# Using Application Secret
C:\PS>Get-GraphToken -tenantId $tenantId -clientId $clientId -secret "IBJ6X~jddSYYnXok1Ryd4cWmGAf6"

# Using Client Certificate
C:\PS>Get-GraphToken -TenantId $tenantid -ClientId $clientId -Certificate "Cert:\CurrentUser\My\FS1G1267565552F2XA055552DA42F0F555CDD3E2"

About

Lightweight graph authentication, get security tokens (access/refresh) directly from the protocol by authorization code with PKCE, client credentials or refresh_token grant.

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages