修改 forge client id and Secret id

This commit is contained in:
jiahao 2024-03-18 00:50:22 +08:00
parent 1f52b754c7
commit 1f16315cc0
3 changed files with 8 additions and 8 deletions

View File

@ -14,9 +14,9 @@
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation", "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation",
"FORGE_CALLBACK_URL": "http://localhost:3000/api/forge/callback/oauth", "FORGE_CALLBACK_URL": "http://localhost:8080",
"FORGE_CLIENT_ID": "zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", "FORGE_CLIENT_ID": "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W",
"FORGE_CLIENT_SECRET": "Bz5KyXqP6UqgGhxm" "FORGE_CLIENT_SECRET": "peaXsHcAorGNdZYd"
} }
}, },
"Backend": { "Backend": {

View File

@ -49,8 +49,8 @@ namespace FrontendWebApi.ApiControllers
TwoLeggedApi oauth = new TwoLeggedApi(); TwoLeggedApi oauth = new TwoLeggedApi();
string grantType = "client_credentials"; string grantType = "client_credentials";
dynamic bearer = await oauth.AuthenticateAsync( dynamic bearer = await oauth.AuthenticateAsync(
"zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W",
"Bz5KyXqP6UqgGhxm", "peaXsHcAorGNdZYd",
grantType, grantType,
scopes); scopes);
return bearer; return bearer;

View File

@ -14,9 +14,9 @@
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation", "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation",
"FORGE_CALLBACK_URL": "http://localhost:3000/api/forge/callback/oauth", "FORGE_CALLBACK_URL": "http://localhost:8080",
"FORGE_CLIENT_ID": "zO4ZGuyALhjrL5o81vA39Pkdgr82WAmq", "FORGE_CLIENT_ID": "kDOSvxcoLPCFKTncWV9GxgFcGFMkUz9W",
"FORGE_CLIENT_SECRET": "Bz5KyXqP6UqgGhxm", "FORGE_CLIENT_SECRET": "peaXsHcAorGNdZYd",
"ASPNETCORE_URLS": "http://localhost:5500" "ASPNETCORE_URLS": "http://localhost:5500"
}, },
"applicationUrl": "https://localhost:5001;http://localhost:5000" "applicationUrl": "https://localhost:5001;http://localhost:5000"