Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
|
||||
namespace WebDesktopBackend.Security.Authentication
|
||||
{
|
||||
public class JwtTokenAuthenticationHandlerOptions : AuthenticationSchemeOptions
|
||||
{
|
||||
// Options for the authentication handler.
|
||||
// Currently: None
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using WebDesktopBackend.Options;
|
||||
|
||||
namespace WebDesktopBackend.Security.Authentication
|
||||
{
|
||||
public class JwtTokenAuthenticationOptions : OptionsFromConfiguration
|
||||
{
|
||||
public override string Position => "JwtTokenAuthentication:Jwt";
|
||||
|
||||
public string RefreshTokenExpirationTimeInHours { get; set; }
|
||||
public string AccessTokenExpirationTimeInMinutes { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user