Skip to content

alflokken/msgraph-powershell-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors