Complete version change
Also put some polish on before initial deployment
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using JobsJobsJobs.Server.Data;
|
||||
using JobsJobsJobs.Shared;
|
||||
using JobsJobsJobs.Shared.Api;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using NodaTime;
|
||||
@@ -79,6 +80,7 @@ namespace JobsJobsJobs.Server.Areas.Api.Controllers
|
||||
return new JsonResult(new LogOnSuccess(jwt, citizen.Id.ToString(), citizen.DisplayName));
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
[HttpGet("get/{id}")]
|
||||
public async Task<IActionResult> GetCitizenById([FromRoute] string id)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UserSecretsId>553960ef-0c79-47d4-98d8-9ca1708e558f</UserSecretsId>
|
||||
<AssemblyVersion>0.7.0.0</AssemblyVersion>
|
||||
<FileVersion>0.7.0.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace JobsJobsJobs.Server
|
||||
{
|
||||
ValidateIssuer = true,
|
||||
ValidateAudience = true,
|
||||
ValidAudience = "https://jobsjobs.jobs",
|
||||
ValidIssuer = "https://jobsjobs.jobs",
|
||||
ValidAudience = "https://noagendacareers.com",
|
||||
ValidIssuer = "https://noagendacareers.com",
|
||||
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(
|
||||
Configuration.GetSection("Auth")["ServerSecret"]))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user