You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a PowerShell module API wraper for the Microsoft Graph API.
5
6
@@ -16,9 +17,9 @@ This module is an API wrapper. It seeks to take the "foreign" concepts of REST a
16
17
* In-memory and at-rest security of the Access Token, Refresh Token, and Client Secret. These are all stored in memory as secure strings and are only made plain-text on demand when needed. When exported to disk, they are done so with CLI XML which maintains the secure string.
17
18
* Extensible type (Mark's "Poor Man's Classes") system allow for piping between functions similar to Active Directory or Exchange cmdlets
18
19
* Easy OAuth authorization process with a WinForms authentication popup
19
-
* No "mystery DLL's" required. The entire OAuth authorization, token request and token refresh process is written in pure PowerShell
20
+
* No "mystery DLL's" required. The entire OAuth authorization, token request, and token refresh process is written in pure PowerShell
20
21
* Export and Import access tokens between sessions allowing you to authorize an application once and reuse the token until the refresh expires from lack of use or is revoked. Great for automation!
21
-
* No hassle Token Refreshing!! Calls to ```Invoke-GraphRequest``` automatically track the renewal needs for your Access Tokens and will automatically refresh them when needed.
22
+
* No hassle Token Refreshing!! Calls to ```Invoke-GraphRequest```(and all the functions that utalize it) automatically track the renewal needs for your Access Tokens and will automatically refresh them when needed.
22
23
23
24
## Installation
24
25
PSMSGraph is available on the [PowerShell Gallery](https://www.powershellgallery.com/packages/psmsgraph/).
5. Set an arbitrary Redirect URI (e.g. ```https://localhost/```)
43
-
5. Note your Redirect URI, Application ID, and the password that was generated. The Application ID is your "Client ID" and the password is your "Client Secret". These are not your O365/Azure username and password.
48
+
5. Note your Redirect URI, Application ID, and the password that was generated. The Application ID is your "Client ID" and the password is your "Client Secret". These are not your O365/Azure username and password.
44
49
45
50
### Authorize the app and export your Access Token
46
51
```powershell
47
-
Import-Module -name PSMSGraph
48
-
#In the credential prompt, provide your applications Client ID as the username and Client Secret as the password
52
+
Import-Module -name 'PSMSGraph'
53
+
#In the credential prompt, provide your application's Client ID as the username and Client Secret as the password
The [Microsoft Graph API](https://graph.microsoft.io/) is a REST API provided by Microsoft for integrating and managing Office 365 Exchange Online, OneDrive for Business, and Azure AD. It allows for application developers to integrate their apps with those Microsoft Services. Management of the environment is also possible but requires understanding of OAuth and REST.
@@ -16,9 +16,9 @@ This module is an API wrapper. It seeks to take the "foreign" concepts of REST a
16
16
* In-memory and at-rest security of the Access Token, Refresh Token, and Client Secret. These are all stored in memory as secure strings and are only made plain-text on demand when needed. When exported to disk, they are done so with CLI XML which maintains the secure string.
17
17
* Extensible type (Mark's "Poor Man's Classes") system allow for piping between functions similar to Active Directory or Exchange cmdlets
18
18
* Easy OAuth authorization process with a WinForms authentication popup
19
-
* No "mystery DLL's" required. The entire OAuth authorization, token request and token refresh process is written in pure PowerShell
19
+
* No "mystery DLL's" required. The entire OAuth authorization, token request, and token refresh process is written in pure PowerShell
20
20
* Export and Import access tokens between sessions allowing you to authorize an application once and reuse the token until the refresh expires from lack of use or is revoked. Great for automation!
21
-
* No hassle Token Refreshing!! Calls to ```Invoke-GraphRequest``` automatically track the renewal needs for your Access Tokens and will automatically refresh them when needed.
21
+
* No hassle Token Refreshing!! Calls to ```Invoke-GraphRequest```(and all the functions that utalize it) automatically track the renewal needs for your Access Tokens and will automatically refresh them when needed.
22
22
23
23
## Installation
24
24
PSMSGraph is available on the [PowerShell Gallery](https://www.powershellgallery.com/packages/psmsgraph/).
5. Set an arbitrary Redirect URI (e.g. ```https://localhost/```)
43
-
5. Note your Redirect URI, Application ID, and the password that was generated. The Application ID is your "Client ID" and the password is your "Client Secret". These are not your O365/Azure username and password.
43
+
5. Note your Redirect URI, Application ID, and the password that was generated. The Application ID is your "Client ID" and the password is your "Client Secret". These are not your O365/Azure username and password.
44
44
45
45
### Authorize the app and export your Access Token
46
46
```powershell
47
-
Import-Module -name PSMSGraph
48
-
#In the credential prompt, provide your applications Client ID as the username and Client Secret as the password
47
+
Import-Module -name 'PSMSGraph'
48
+
#In the credential prompt, provide your application's Client ID as the username and Client Secret as the password
0 commit comments