build cli
This commit is contained in:
parent
b3d565b6d9
commit
5c046dfa88
34 changed files with 7153 additions and 1231 deletions
3445
src/Yavsc.Server/Migrations/20250715211745_test.Designer.cs
generated
Normal file
3445
src/Yavsc.Server/Migrations/20250715211745_test.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
44
src/Yavsc.Server/Migrations/20250715211745_test.cs
Normal file
44
src/Yavsc.Server/Migrations/20250715211745_test.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class test : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_Applications",
|
||||
table: "Applications");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Applications",
|
||||
newName: "Client");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_Client",
|
||||
table: "Client",
|
||||
column: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_Client",
|
||||
table: "Client");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Client",
|
||||
newName: "Applications");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_Applications",
|
||||
table: "Applications",
|
||||
column: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
3444
src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.Designer.cs
generated
Normal file
3444
src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
40
src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.cs
Normal file
40
src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class nullReturnUrl : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "LogoutRedirectUri",
|
||||
table: "Client",
|
||||
type: "character varying(512)",
|
||||
maxLength: 512,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(512)",
|
||||
oldMaxLength: 512);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "LogoutRedirectUri",
|
||||
table: "Client",
|
||||
type: "character varying(512)",
|
||||
maxLength: 512,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(512)",
|
||||
oldMaxLength: 512,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -447,7 +447,6 @@ namespace Yavsc.Migrations
|
|||
.HasColumnType("character varying(128)");
|
||||
|
||||
b.Property<string>("LogoutRedirectUri")
|
||||
.IsRequired()
|
||||
.HasMaxLength(512)
|
||||
.HasColumnType("character varying(512)");
|
||||
|
||||
|
|
@ -468,7 +467,7 @@ namespace Yavsc.Migrations
|
|||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Applications");
|
||||
b.ToTable("Client");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Yavsc.Models.Auth.Scope", b =>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Yavsc.Models.Auth
|
|||
|
||||
|
||||
[MaxLength(512)]
|
||||
public string LogoutRedirectUri { get; set; }
|
||||
public string? LogoutRedirectUri { get; set; }
|
||||
[MaxLength(512)]
|
||||
public string Secret { get; set; }
|
||||
public ApplicationTypes Type { get; set; }
|
||||
|
|
|
|||
|
|
@ -86,6 +86,11 @@ namespace Yavsc.Services
|
|||
return msg.MessageId;
|
||||
}
|
||||
|
||||
public void SendEmailFromCriteria(string Criteria)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public async Task SendPasswordResetCodeAsync(ApplicationUser user, string email, string resetCode)
|
||||
{
|
||||
var callbackUrl = siteSettings.Audience + "/Account/ResetPassword/" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue