From 1f16315cc03357409ba95ebdc0a5d75d731936d8 Mon Sep 17 00:00:00 2001 From: jiahao Date: Mon, 18 Mar 2024 00:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20forge=20client=20id=20and?= =?UTF-8?q?=20Secret=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Properties/launchSettings.json | 6 +++--- FrontendWebApi/ApiControllers/OAuthController.cs | 4 ++-- FrontendWebApi/Properties/launchSettings.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Backend/Properties/launchSettings.json b/Backend/Properties/launchSettings.json index c3d3bd5..cbd22df 100644 --- a/Backend/Properties/launchSettings.json +++ b/Backend/Properties/launchSettings.json @@ -14,9 +14,9 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation", - "FORGE_CALLBACK_URL": "http://localhost:3000/api/forge/callback/oauth", - "FORGE_CLIENT_ID": "zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", - "FORGE_CLIENT_SECRET": "Bz5KyXqP6UqgGhxm" + "FORGE_CALLBACK_URL": "http://localhost:8080", + "FORGE_CLIENT_ID": "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W", + "FORGE_CLIENT_SECRET": "peaXsHcAorGNdZYd" } }, "Backend": { diff --git a/FrontendWebApi/ApiControllers/OAuthController.cs b/FrontendWebApi/ApiControllers/OAuthController.cs index af9d0d4..2be5fe3 100644 --- a/FrontendWebApi/ApiControllers/OAuthController.cs +++ b/FrontendWebApi/ApiControllers/OAuthController.cs @@ -49,8 +49,8 @@ namespace FrontendWebApi.ApiControllers TwoLeggedApi oauth = new TwoLeggedApi(); string grantType = "client_credentials"; dynamic bearer = await oauth.AuthenticateAsync( - "zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", - "Bz5KyXqP6UqgGhxm", + "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W", + "peaXsHcAorGNdZYd", grantType, scopes); return bearer; diff --git a/FrontendWebApi/Properties/launchSettings.json b/FrontendWebApi/Properties/launchSettings.json index 0747994..7993d94 100644 --- a/FrontendWebApi/Properties/launchSettings.json +++ b/FrontendWebApi/Properties/launchSettings.json @@ -14,9 +14,9 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation", - "FORGE_CALLBACK_URL": "http://localhost:3000/api/forge/callback/oauth", - "FORGE_CLIENT_ID": "zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", - "FORGE_CLIENT_SECRET": "Bz5KyXqP6UqgGhxm", + "FORGE_CALLBACK_URL": "http://localhost:8080", + "FORGE_CLIENT_ID": "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W", + "FORGE_CLIENT_SECRET": "peaXsHcAorGNdZYd", "ASPNETCORE_URLS": "http://localhost:5500" }, "applicationUrl": "https://localhost:5001;http://localhost:5000"