Skip to content

Commit 1b88464

Browse files
authored
Merge pull request #2307 from microsoftgraph/auth-documentation
Documentation for Authentication cmdlets
2 parents 6836d78 + 69f727b commit 1b88464

File tree

82 files changed

+5897
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5897
-245
lines changed

src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<LangVersion>9.0</LangVersion>
55
<TargetFrameworks>netstandard2.0;net6.0;net472</TargetFrameworks>
66
<RootNamespace>Microsoft.Graph.PowerShell.Authentication.Core</RootNamespace>
7-
<Version>2.1.0</Version>
7+
<Version>2.6.1</Version>
88
</PropertyGroup>
99
<PropertyGroup>
1010
<EnableNETAnalyzers>true</EnableNETAnalyzers>

src/Authentication/Authentication.Test/Microsoft.Graph.Authentication.Test.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
1+
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
43
<TargetFrameworks>net6.0;net472</TargetFrameworks>
54
<IsPackable>false</IsPackable>
5+
<Version>2.6.1</Version>
66
</PropertyGroup>
7-
87
<ItemGroup>
98
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
109
<!-- As described in this post https://devblogs.microsoft.com/powershell/depending-on-the-right-powershell-nuget-package-in-your-net-project, reference the SDK for dotnetcore-->
@@ -19,8 +18,7 @@
1918
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2019
</PackageReference>
2120
</ItemGroup>
22-
2321
<ItemGroup>
2422
<ProjectReference Include="..\Authentication\Microsoft.Graph.Authentication.csproj" />
2523
</ItemGroup>
26-
</Project>
24+
</Project>

src/Authentication/Authentication/Cmdlets/ConnectMgGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
2828
{
29-
[Cmdlet(VerbsCommunications.Connect, "MgGraph", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-connect-mggraph")]
29+
[Cmdlet(VerbsCommunications.Connect, "MgGraph", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/connect-mggraph")]
3030
[Alias("Connect-Graph")]
3131
public class ConnectMgGraph : PSCmdlet, IModuleAssemblyInitializer, IModuleAssemblyCleanup
3232
{

src/Authentication/Authentication/Cmdlets/DisconnectMgGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
1212
{
13-
[Cmdlet(VerbsCommunications.Disconnect, "MgGraph", HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-disconnect-mggraph")]
13+
[Cmdlet(VerbsCommunications.Disconnect, "MgGraph", HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/disconnect-graph")]
1414
[Alias("Disconnect-Graph")]
1515
[OutputType(typeof(IAuthContext))]
1616
public class DisconnectMgGraph : PSCmdlet

src/Authentication/Authentication/Cmdlets/Environment/AddMgEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
1616
/// <summary>
1717
/// Adds Microsoft Graph environment to the settings file.
1818
/// </summary>
19-
[Cmdlet(VerbsCommon.Add, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-get-mgenvironment")]
19+
[Cmdlet(VerbsCommon.Add, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/add-mgenvironment")]
2020
[OutputType(typeof(GraphEnvironment))]
2121
public class AddMgEnvironment : PSCmdlet
2222
{

src/Authentication/Authentication/Cmdlets/Environment/GetMgEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
1111
/// <summary>
1212
/// Gets or lists available Microsoft Graph environments to the settings file..
1313
/// </summary>
14-
[Cmdlet(VerbsCommon.Get, "MgEnvironment", HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-get-mgenvironment")]
14+
[Cmdlet(VerbsCommon.Get, "MgEnvironment", HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mgenvironment")]
1515
[OutputType(typeof(GraphEnvironment))]
1616
public class GetMgEnvironment : PSCmdlet
1717
{

src/Authentication/Authentication/Cmdlets/Environment/RemoveMgEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
1414
/// <summary>
1515
/// Removes Microsoft Graph environment to the settings file..
1616
/// </summary>
17-
[Cmdlet(VerbsCommon.Remove, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-get-mgenvironment")]
17+
[Cmdlet(VerbsCommon.Remove, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/remove-mgenvironment")]
1818
[OutputType(typeof(GraphEnvironment))]
1919
public class RemoveMgEnvironment : PSCmdlet
2020
{

src/Authentication/Authentication/Cmdlets/Environment/SetMgEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
1616
/// <summary>
1717
/// Sets a Microsoft Graph environment to the settings file..
1818
/// </summary>
19-
[Cmdlet(VerbsCommon.Set, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-get-mgenvironment")]
19+
[Cmdlet(VerbsCommon.Set, "MgEnvironment", SupportsShouldProcess = true, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/set-mgenvironment")]
2020
[OutputType(typeof(GraphEnvironment))]
2121
public class SetMgEnvironment : PSCmdlet
2222
{

src/Authentication/Authentication/Cmdlets/GetMGContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
88
{
9-
[Cmdlet(VerbsCommon.Get, "MgContext", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-get-mgcontext")]
9+
[Cmdlet(VerbsCommon.Get, "MgContext", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/get-mgcontext")]
1010
[OutputType(typeof(IAuthContext))]
1111
public class GetMgContext : PSCmdlet
1212
{

src/Authentication/Authentication/Cmdlets/InvokeMgGraphRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace Microsoft.Graph.PowerShell.Authentication.Cmdlets
2727
{
28-
[Cmdlet(VerbsLifecycle.Invoke, "MgGraphRequest", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/powershell/microsoftgraph/authentication-commands#using-invoke-mggraphrequest")]
28+
[Cmdlet(VerbsLifecycle.Invoke, "MgGraphRequest", DefaultParameterSetName = Constants.UserParameterSet, HelpUri = "https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest")]
2929
[Alias("Invoke-GraphRequest", "Invoke-MgRestMethod")]
3030
public class InvokeMgGraphRequest : PSCmdlet
3131
{

0 commit comments

Comments
 (0)