-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0972cf4
commit d7ddbd7
Showing
55 changed files
with
3,094 additions
and
3,149 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
13 changes: 6 additions & 7 deletions
13
samples/ScottBrady.IdentityModel.Samples.AspNetCore/Models/PasswordRulesModel.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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ScottBrady.IdentityModel.Samples.AspNetCore.Models | ||
namespace ScottBrady.IdentityModel.Samples.AspNetCore.Models; | ||
|
||
public class PasswordRulesModel | ||
{ | ||
public class PasswordRulesModel | ||
{ | ||
public string Message { get; set; } | ||
public IEnumerable<string> Errors { get; set; } = new List<string>(); | ||
public string Password { get; set; } | ||
} | ||
public string Message { get; set; } | ||
public IEnumerable<string> Errors { get; set; } = new List<string>(); | ||
public string Password { get; set; } | ||
} |
13 changes: 6 additions & 7 deletions
13
samples/ScottBrady.IdentityModel.Samples.AspNetCore/Models/TokenModel.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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
namespace ScottBrady.IdentityModel.Samples.AspNetCore.Models | ||
namespace ScottBrady.IdentityModel.Samples.AspNetCore.Models; | ||
|
||
public class TokenModel | ||
{ | ||
public class TokenModel | ||
{ | ||
public string Type { get; set; } | ||
public string Token { get; set; } | ||
public string Payload { get; set; } | ||
} | ||
public string Type { get; set; } | ||
public string Token { get; set; } | ||
public string Payload { get; set; } | ||
} |
27 changes: 13 additions & 14 deletions
27
samples/ScottBrady.IdentityModel.Samples.AspNetCore/Program.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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.Extensions.Hosting; | ||
|
||
namespace ScottBrady.IdentityModel.Samples.AspNetCore | ||
namespace ScottBrady.IdentityModel.Samples.AspNetCore; | ||
|
||
public class Program | ||
{ | ||
public class Program | ||
public static void Main(string[] args) | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
CreateHostBuilder(args).Build().Run(); | ||
} | ||
|
||
public static IHostBuilder CreateHostBuilder(string[] args) => | ||
Host.CreateDefaultBuilder(args) | ||
.ConfigureWebHostDefaults(webBuilder => | ||
{ | ||
webBuilder.UseStartup<Startup>(); | ||
}); | ||
CreateHostBuilder(args).Build().Run(); | ||
} | ||
} | ||
|
||
private static IHostBuilder CreateHostBuilder(string[] args) => | ||
Host.CreateDefaultBuilder(args) | ||
.ConfigureWebHostDefaults(webBuilder => | ||
{ | ||
webBuilder.UseStartup<Startup>(); | ||
}); | ||
} |
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
Oops, something went wrong.