Skip to content

Commit

Permalink
Namespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Apr 15, 2024
1 parent 4a8c769 commit a57e50a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions BTCPayApp.Core/AspNetRip/AccessTokenResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json;

namespace Microsoft.AspNetCore.Authentication.BearerToken;
namespace BTCPayApp.Core.AspNetRip;

/// <summary>
/// The JSON data transfer object for the bearer token response typically found in "/login" and "/refresh" responses.
Expand Down Expand Up @@ -42,4 +42,4 @@ public sealed class AccessTokenResponse
/// This is serialized as "refreshToken": "{RefreshToken}" using using <see cref="JsonSerializerDefaults.Web"/>.
/// </remarks>
public required string RefreshToken { get; init; }
}
}
4 changes: 2 additions & 2 deletions BTCPayApp.Core/AspNetRip/LoginRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.AspNetCore.Identity.Data;
namespace BTCPayApp.Core.AspNetRip;

/// <summary>
/// The request type for the "/login" endpoint added by <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi"/>.
Expand Down Expand Up @@ -26,4 +26,4 @@ public sealed class LoginRequest
/// This is required for users who have enabled two-factor authentication but lost access to their <see cref="TwoFactorCode"/>.
/// </summary>
public string? TwoFactorRecoveryCode { get; init; }
}
}
4 changes: 2 additions & 2 deletions BTCPayApp.Core/AspNetRip/ProblemDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace Microsoft.AspNetCore.Mvc;
namespace BTCPayApp.Core.AspNetRip;

/// <summary>
/// A machine-readable format for specifying errors in HTTP API responses based on <see href="https://tools.ietf.org/html/rfc7807"/>.
Expand Down Expand Up @@ -68,4 +68,4 @@ public class ProblemDetails
/// </remarks>
[JsonExtensionData]
public IDictionary<string, object?> Extensions { get; set; } = new Dictionary<string, object?>(StringComparer.Ordinal);
}
}
4 changes: 2 additions & 2 deletions BTCPayApp.Core/AspNetRip/RefreshRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.AspNetCore.Identity.Data;
namespace BTCPayApp.Core.AspNetRip;

/// <summary>
/// The request type for the "/refresh" endpoint added by <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi"/>.
Expand All @@ -10,4 +10,4 @@ public sealed class RefreshRequest
/// with an extended expiration.
/// </summary>
public required string RefreshToken { get; init; }
}
}
5 changes: 2 additions & 3 deletions BTCPayApp.Core/AspNetRip/ResetPasswordRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

namespace Microsoft.AspNetCore.Identity.Data;
namespace BTCPayApp.Core.AspNetRip;

/// <summary>
/// The response type for the "/resetPassword" endpoint added by <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi"/>.
Expand All @@ -21,4 +20,4 @@ public sealed class ResetPasswordRequest
/// The new password the user with the given <see cref="Email"/> should login with. This will replace the previous password.
/// </summary>
public required string NewPassword { get; init; }
}
}
6 changes: 3 additions & 3 deletions BTCPayApp.Core/BTCPayAppClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Net.Http.Headers;
using System.Net.Http.Json;
using BTCPayApp.CommonServer;
using Microsoft.AspNetCore.Authentication.BearerToken;
using Microsoft.AspNetCore.Identity.Data;
using Microsoft.AspNetCore.Mvc;
using AccessTokenResponse = BTCPayApp.Core.AspNetRip.AccessTokenResponse;
using ProblemDetails = BTCPayApp.Core.AspNetRip.ProblemDetails;
using RefreshRequest = BTCPayApp.Core.AspNetRip.RefreshRequest;

namespace BTCPayApp.Core;

Expand Down

0 comments on commit a57e50a

Please sign in to comment.