-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for Identity API endpoints with IdentityApiOptions.
- Loading branch information
1 parent
3ae17a0
commit 8cb05ba
Showing
8 changed files
with
146 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/Identity/Extensions.Core/src/IdentityApiEndpointsOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Numerics; | ||
|
||
namespace Microsoft.AspNetCore.Identity; | ||
|
||
/// <summary> | ||
/// Defines endpoint route names for Identity API operations. | ||
/// </summary> | ||
public class IdentityApiEndpointsOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the endpoint route name for user registration. | ||
/// </summary> | ||
public string Register { get; set; } = "register"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for user login. | ||
/// </summary> | ||
public string Login { get; set; } = "login"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for refreshing tokens. | ||
/// </summary> | ||
public string Refresh { get; set; } = "refresh"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for confirming email. | ||
/// </summary> | ||
public string ConfirmEmail { get; set; } = "confirmEmail"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for resending confirmation email. | ||
/// </summary> | ||
public string ResendConfirmationEmail { get; set; } = "resendConfirmationEmail"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for forgot password. | ||
/// </summary> | ||
public string ForgotPassword { get; set; } = "forgotPassword"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for resetting password. | ||
/// </summary> | ||
public string ResetPassword { get; set; } = "resetPassword"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for two-factor authentication. | ||
/// </summary> | ||
public string TwoFactorAuth { get; set; } = "2fa"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoint route name for user information. | ||
/// </summary> | ||
public string Info { get; set; } = "info"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace Microsoft.AspNetCore.Identity; | ||
|
||
/// <summary> | ||
/// Options for configuring the Identity API. | ||
/// </summary> | ||
public class IdentityApiOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the tag used for the Identity API. | ||
/// </summary> | ||
public string Tag { get; set; } = "identity"; | ||
|
||
/// <summary> | ||
/// Gets or sets the group name used for the Identity API. | ||
/// </summary> | ||
public string GroupName { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Gets or sets the manage group name used for the Identity API. | ||
/// </summary> | ||
public string ManageGroupName { get; set; } = "manage"; | ||
|
||
/// <summary> | ||
/// Gets or sets the endpoints options for the Identity API. | ||
/// </summary> | ||
public IdentityApiEndpointsOptions Endpoints { get; set; } = new IdentityApiEndpointsOptions(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule googletest
updated
7 files
+18 −27 | MODULE.bazel | |
+9 −9 | docs/gmock_cook_book.md | |
+4 −32 | fake_fuchsia_sdk.bzl | |
+6 −44 | googletest/src/gtest.cc | |
+9 −86 | googletest/test/googletest-json-output-unittest.py | |
+13 −52 | googletest/test/gtest_xml_output_unittest.py | |
+0 −16 | googletest/test/gtest_xml_output_unittest_.cc |