From 5866194f630050a566334baae7c0de1fe0f1d319 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Thu, 7 Jan 2021 23:26:12 -0500 Subject: [PATCH] Update domain name --- src/JobsJobsJobs/Server/Auth.cs | 6 +++--- src/JobsJobsJobs/Server/appsettings.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/JobsJobsJobs/Server/Auth.cs b/src/JobsJobsJobs/Server/Auth.cs index 14451c3..4931636 100644 --- a/src/JobsJobsJobs/Server/Auth.cs +++ b/src/JobsJobsJobs/Server/Auth.cs @@ -35,7 +35,7 @@ namespace JobsJobsJobs.Server { client_id = config["ClientId"], client_secret = config["Secret"], - redirect_uri = "https://localhost:3005/citizen/authorized", + redirect_uri = $"{config["ReturnHost"]}/citizen/authorized", grant_type = "authorization_code", code = authCode, scope = "read" @@ -100,8 +100,8 @@ namespace JobsJobsJobs.Server new Claim(ClaimTypes.Name, citizen.DisplayName), }), Expires = DateTime.UtcNow.AddHours(2), - Issuer = "https://jobsjobs.jobs", - Audience = "https://jobsjobs.jobs", + Issuer = "https://noagendacareers.com", + Audience = "https://noagendacareers.com", SigningCredentials = new SigningCredentials( new SymmetricSecurityKey(Encoding.UTF8.GetBytes(config["ServerSecret"])), SecurityAlgorithms.HmacSha256Signature) diff --git a/src/JobsJobsJobs/Server/appsettings.json b/src/JobsJobsJobs/Server/appsettings.json index 3c37399..9c22885 100644 --- a/src/JobsJobsJobs/Server/appsettings.json +++ b/src/JobsJobsJobs/Server/appsettings.json @@ -6,5 +6,9 @@ "Microsoft.Hosting.Lifetime": "Information" } }, -"AllowedHosts": "*" + "Auth": { + "ApiUrl": "https://noagendasocial.com/api/v1/", + "ReturnHost": "https://noagendacareers.com" + }, + "AllowedHosts": "*" }