Skip to content

Commit

Permalink
deps: D2L.CodeStyle.Analyzers 0.93.0 (netstandard1.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith committed Dec 5, 2018
1 parent 5594776 commit fd44b02
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\..\packages\D2L.CodeStyle.Analyzers.0.74.0\lib\net47\D2L.CodeStyle.Analyzers.dll" />
<Analyzer Include="..\..\packages\D2L.CodeStyle.Analyzers.0.93.0\analyzers\dotnet\cs\D2L.CodeStyle.Analyzers.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
using D2L.CodeStyle.Annotations;
using D2L.Security.OAuth2.Scopes;
using D2L.Security.OAuth2.Validation.AccessTokens;
using static D2L.CodeStyle.Annotations.Objects;

namespace D2L.Security.OAuth2.Principal {
/// <summary>
/// This class can serve as either an IPrincipal or an ID2LPrincipal
/// </summary>
[Immutable]
internal sealed class D2LPrincipalToIPrincipalAdaptor : IPrincipal, ID2LPrincipal {
private readonly ID2LPrincipal m_principal;
[Mutability.Audited( "Todd Lang", "02-Mar-2018", ".Net class can't modify, but is immutable." )]
Expand Down
2 changes: 1 addition & 1 deletion src/D2L.Security.OAuth2.WebApi/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="D2L.CodeStyle.Analyzers" version="0.74.0" targetFramework="net47" developmentOnlyDependency="true" />
<package id="D2L.CodeStyle.Analyzers" version="0.93.0" targetFramework="net47" developmentOnlyDependency="true" />
<package id="D2L.CodeStyle.Annotations" version="0.22.0" targetFramework="net20" />
<package id="D2L.Services.Core.Extensions" version="2.0.3.46" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net451" />
Expand Down
2 changes: 1 addition & 1 deletion src/D2L.Security.OAuth2/D2L.Security.OAuth2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\..\packages\D2L.CodeStyle.Analyzers.0.74.0\lib\net47\D2L.CodeStyle.Analyzers.dll" />
<Analyzer Include="..\..\packages\D2L.CodeStyle.Analyzers.0.93.0\analyzers\dotnet\cs\D2L.CodeStyle.Analyzers.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
3 changes: 3 additions & 0 deletions src/D2L.Security.OAuth2/Principal/AnonymousPrincipal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
using System.Security.Claims;
using D2L.Security.OAuth2.Scopes;
using D2L.Security.OAuth2.Validation.AccessTokens;
using static D2L.CodeStyle.Annotations.Objects;

namespace D2L.Security.OAuth2.Principal {
[Immutable]
internal sealed class AnonymousPrincipal : ID2LPrincipal {

private static readonly IAccessToken ANONYMOUS_ACCESS_TOKEN = new AnonymousAccessToken();
Expand Down Expand Up @@ -34,6 +36,7 @@ internal sealed class AnonymousPrincipal : ID2LPrincipal {
get { return ANONYMOUS_ACCESS_TOKEN; }
}

[Immutable]
private class AnonymousAccessToken : IAccessToken {

string IAccessToken.Id {
Expand Down
2 changes: 2 additions & 0 deletions src/D2L.Security.OAuth2/Principal/D2LPrincipal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
using System.Linq;
using D2L.Security.OAuth2.Scopes;
using D2L.Security.OAuth2.Validation.AccessTokens;
using static D2L.CodeStyle.Annotations.Objects;

namespace D2L.Security.OAuth2.Principal {

[Immutable]
internal sealed class D2LPrincipal : ID2LPrincipal {

private readonly IAccessToken m_accessToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using D2L.CodeStyle.Annotations;
using static D2L.CodeStyle.Annotations.Objects;

#if DNXCORE50
using System.IdentityModel.Tokens.Jwt;
#endif

namespace D2L.Security.OAuth2.Validation.AccessTokens {
[Immutable]
internal sealed class AccessToken : IAccessToken {
[Mutability.Audited( "Todd Lang", "02-Mar-2018", ".Net class we can't modify, but is used immutably." )]
private readonly JwtSecurityToken m_inner;
Expand Down
2 changes: 1 addition & 1 deletion src/D2L.Security.OAuth2/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="D2L.CodeStyle.Analyzers" version="0.74.0" targetFramework="net47" developmentOnlyDependency="true" />
<package id="D2L.CodeStyle.Analyzers" version="0.93.0" targetFramework="net47" developmentOnlyDependency="true" />
<package id="D2L.CodeStyle.Annotations" version="0.22.0" targetFramework="net20" />
<package id="D2L.Services.Core.Exceptions" version="2.0.1.15" targetFramework="net461" />
<package id="D2L.Services.Core.Extensions" version="2.0.3.46" targetFramework="net461" />
Expand Down

0 comments on commit fd44b02

Please sign in to comment.