Skip to content

Commit

Permalink
feat: add models for application, authorization, scope and token
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanoff committed Jan 25, 2024
1 parent 59abd34 commit 802373d
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/OpenIddict.DynamoDb.Models/OpenIddictDynamoDbApplication.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Collections.Immutable;

namespace OpenIddict.DynamoDb.Models;

public class OpenIddictDynamoDbApplication
{
public required string Id { get; set; }
public required string ClientId { get; set; }
public string? ClientSecret { get; set; }
public string? ConcurrencyToken { get; set; }
public string? ConsentType { get; set; }
public string? DisplayName { get; set; }
public IReadOnlyList<string> DisplayNames { get; set; } = ImmutableList<string>.Empty;
public IReadOnlyList<string> Permissions { get; set; } = ImmutableList<string>.Empty;
public IReadOnlyList<string> PostLogoutRedirectUris { get; set; } = ImmutableList<string>.Empty;
public string? Properties { get; set; }
public IReadOnlyList<string> RedirectUris { get; set; } = ImmutableList<string>.Empty;
public IReadOnlyList<string> Requirements { get; set; } = ImmutableList<string>.Empty;
public string? ClientType { get; set; }
public string? ApplicationType { get; set; }
public string? JsonWebKeySet { get; set; }
public IReadOnlyDictionary<string, string>? Settings { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace OpenIddict.DynamoDb.Models;

public class OpenIddictDynamoDbAuthorization
{

}
14 changes: 14 additions & 0 deletions src/OpenIddict.DynamoDb.Models/OpenIddictDynamoDbScope.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace OpenIddict.DynamoDb.Models;

public class OpenIddictDynamoDbScope
{
public required string Id { get; set; }
public string? ConcurrencyToken { get; set; }
public string? Description { get; set; }
public string? Descriptions { get; set; }
public string? DisplayName { get; set; }
public string? DisplayNames { get; set; }
public required string Name { get; set; }
public string? Properties { get; set; }
public string? Resources { get; set; }
}
6 changes: 6 additions & 0 deletions src/OpenIddict.DynamoDb.Models/OpenIddictDynamoDbToken.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace OpenIddict.DynamoDb.Models;

public class OpenIddictDynamoDbToken
{

}

0 comments on commit 802373d

Please sign in to comment.