diff options
author | crupest <crupest@outlook.com> | 2020-02-21 11:59:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-02-21 11:59:58 +0800 |
commit | 6cf3c7891fe8a810b20bb799db9f3fb97414c4de (patch) | |
tree | a143ff8698660608d188428957a1ad56d620cca6 /Timeline/Configs/JwtConfiguration.cs | |
parent | e6a153380c720e386137904498b78b5488868f13 (diff) | |
download | timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.tar.gz timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.tar.bz2 timeline-6cf3c7891fe8a810b20bb799db9f3fb97414c4de.zip |
Migrate to use sqlite.
Diffstat (limited to 'Timeline/Configs/JwtConfiguration.cs')
-rw-r--r-- | Timeline/Configs/JwtConfiguration.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Timeline/Configs/JwtConfiguration.cs b/Timeline/Configs/JwtConfiguration.cs new file mode 100644 index 00000000..fc27f4ee --- /dev/null +++ b/Timeline/Configs/JwtConfiguration.cs @@ -0,0 +1,15 @@ +namespace Timeline.Configs
+{
+ public class JwtConfiguration
+ {
+ public string Issuer { get; set; } = default!;
+ public string Audience { get; set; } = default!;
+ public string SigningKey { get; set; } = default!;
+
+ /// <summary>
+ /// Set the default value of expire offset of jwt token.
+ /// Unit is second. Default is 3600 * 24 seconds, aka 1 day.
+ /// </summary>
+ public long DefaultExpireOffset { get; set; } = 3600 * 24;
+ }
+}
|