Id Stores from db
This commit is contained in:
parent
c81a019ecc
commit
03161bbfb6
23 changed files with 2932 additions and 231 deletions
|
|
@ -43,13 +43,13 @@ public static class Config
|
|||
new IdentityResources.Email()
|
||||
];
|
||||
|
||||
public static IEnumerable<ApiScope> TestingApiScopes =>
|
||||
public static IEnumerable<ApiScope> ApiScopes =>
|
||||
[
|
||||
new ApiScope("scope1",new string[] {"scope1"}),
|
||||
new ApiScope("scope2",new string[] {"scope2"}),
|
||||
];
|
||||
|
||||
public static IEnumerable<Client> TestingClients =>
|
||||
public static IEnumerable<Client> Clients =>
|
||||
[
|
||||
// m2m client credentials flow client
|
||||
new Client
|
||||
|
|
|
|||
3444
src/Yavsc.Server/Migrations/20250814102318_init.Designer.cs
generated
3444
src/Yavsc.Server/Migrations/20250814102318_init.Designer.cs
generated
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -91,8 +91,6 @@ namespace Yavsc.Models
|
|||
optionsBuilder.UseNpgsql(envCxStr);
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
public DbSet<Client> Applications { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Activities referenced on this site
|
||||
|
|
@ -278,6 +276,5 @@ namespace Yavsc.Models
|
|||
public DbSet<Scope> Scopes { get; set; }
|
||||
|
||||
public DbSet<BlogSpotPublication> blogSpotPublications { get; set; }
|
||||
public DbSet<Client> Client { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Auth
|
||||
{
|
||||
public class Client
|
||||
{
|
||||
[Key][Required][DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public string Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(128)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[MaxLength(512)]
|
||||
public string? RedirectUri { get; set; }
|
||||
|
||||
|
||||
[MaxLength(512)]
|
||||
public string? LogoutRedirectUri { get; set; }
|
||||
[MaxLength(512)]
|
||||
public string Secret { get; set; }
|
||||
public ApplicationTypes Type { get; set; }
|
||||
|
||||
public bool Active { get; set; }
|
||||
public int RefreshTokenLifeTime { get; set; }
|
||||
public int AccessTokenLifetime { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue