Skip to content

Commit

Permalink
Merge pull request #1207 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
1.9.5 Release
  • Loading branch information
peombwa authored Apr 13, 2022
2 parents 7d9e782 + 7259ddd commit 39dc290
Show file tree
Hide file tree
Showing 44 changed files with 55 additions and 45 deletions.
2 changes: 1 addition & 1 deletion config/ModuleMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
],
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
"version": "1.9.4"
"version": "1.9.5"
}
2 changes: 1 addition & 1 deletion src/Applications/Applications/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;net461</TargetFrameworks>
<RootNamespace>Microsoft.Graph.PowerShell.Authentication.Core</RootNamespace>
<Version>1.4.3</Version>
<Version>1.9.5</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Graph.Auth" Version="1.0.0-preview.7" />
Expand Down
12 changes: 11 additions & 1 deletion src/Authentication/Authentication/Helpers/HttpHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,24 @@ private static void PrependSDKHeader(HttpClient httpClient, string headerName, s
httpClient.DefaultRequestHeaders.Add(headerName, previousSDKHeaders.Prepend(headerValue));
}
}

private static void ReplaceSDKHeader(HttpClient httpClient, string headerName, string headerValue)
{
if (!httpClient.DefaultRequestHeaders.Contains(headerName)) {
httpClient.DefaultRequestHeaders.Add(headerName, headerValue);
} else {
httpClient.DefaultRequestHeaders.Remove(headerName);
httpClient.DefaultRequestHeaders.Add(headerName, headerValue);
}
}

public static HttpClient GetGraphHttpClient(InvocationInfo invocationInfo, IAuthContext authContext = null)
{
authContext = authContext ?? GraphSession.Instance.AuthContext;
if (authContext is null) { throw new AuthenticationException(Core.ErrorConstants.Message.MissingAuthContext); }
var httpClient = GetGraphHttpClient(authContext);
var requestUserAgent = new RequestUserAgent(authContext.PSHostVersion, invocationInfo);
PrependSDKHeader(httpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent);
ReplaceSDKHeader(httpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent);
return httpClient;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.7.0</Version>
<Version>1.9.5</Version>
<LangVersion>7.1</LangVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Library</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<metadata>
<version>1.7.0</version>
<version>1.9.5</version>
<id>Microsoft.Graph.Authentication</id>
<description>Microsoft Graph PowerShell authentication module</description>
<authors>Microsoft</authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft
#
# Generated on: 3/30/2022
# Generated on: 4/13/2022
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = './Microsoft.Graph.Authentication.psm1'

# Version number of this module.
ModuleVersion = '1.9.4'
ModuleVersion = '1.9.5'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down
2 changes: 1 addition & 1 deletion src/Bookings/Bookings/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Calendar/Calendar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ directive:
### Versioning

``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/ChangeNotifications/ChangeNotifications/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/CloudCommunications/CloudCommunications/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Compliance/Compliance/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/DeviceManagement/DeviceManagement/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Devices.CloudPrint/Devices.CloudPrint/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/DirectoryObjects/DirectoryObjects/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Education/Education/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Files/Files/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Financials/Financials/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Groups/Groups/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Identity.Governance/Identity.Governance/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Identity.SignIns/Identity.SignIns/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Mail/Mail/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Notes/Notes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/People/People/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/PersonalContacts/PersonalContacts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Planner/Planner/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Reports/Reports/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/SchemaExtensions/SchemaExtensions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Search/Search/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Security/Security/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Sites/Sites/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Teams/Teams/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Users.Actions/Users.Actions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Users.Functions/Users.Functions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Users/Users/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/WindowsUpdates/WindowsUpdates/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ directive:
### Versioning
``` yaml
module-version: 1.9.4
module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```

0 comments on commit 39dc290

Please sign in to comment.