diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-11 21:48:49 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-11 21:49:05 +0200 |
| commit | d8f253c6710cb23c632d3fc8a31d4d7d1ee0b9ff (patch) | |
| tree | 5c7d3f970a6ba549bb30160397ae9b7f544a8a71 /API/Startup.cs | |
| parent | c63b86e74230144c111a380b272a0260e6ed019b (diff) | |
| download | DevHive-d8f253c6710cb23c632d3fc8a31d4d7d1ee0b9ff.tar DevHive-d8f253c6710cb23c632d3fc8a31d4d7d1ee0b9ff.tar.gz DevHive-d8f253c6710cb23c632d3fc8a31d4d7d1ee0b9ff.zip | |
Authorization key is gotten from appsettings.json (AppSettings/Secret)
Diffstat (limited to 'API/Startup.cs')
| -rw-r--r-- | API/Startup.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/API/Startup.cs b/API/Startup.cs index d9388cf..a113736 100644 --- a/API/Startup.cs +++ b/API/Startup.cs @@ -46,7 +46,7 @@ namespace API });
// configure jwt authentication
- var key = Encoding.ASCII.GetBytes(Configuration.GetSection("AppSettings").GetValue("Secret", ")H@McQfTB?E(H+Mb8x/A?D(Gr4u7x!A%WnZr4t7weThWmZq4KbPeShVm*G-KaPdSz%C*F-Ja6w9z$C&F"));
+ var key = Encoding.ASCII.GetBytes(Configuration.GetSection("AppSettings").GetSection("Secret").Value);
services.AddAuthentication(x =>
{
x.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
|
