Фикс
This commit is contained in:
		| @@ -148,7 +148,7 @@ public class UsersController : ControllerBase | ||||
|     [HttpGet("signin-google")] | ||||
|     public IActionResult SignInWithGoogle() | ||||
|     { | ||||
|         var properties = new AuthenticationProperties { RedirectUri = Url.Action("SignInWithGoogleCallback") }; | ||||
|         var properties = new AuthenticationProperties { RedirectUri = "https://cyberbloom.zetcraft.ru/api/users/signin-google-callback"  }; | ||||
|         return Challenge(properties, GoogleDefaults.AuthenticationScheme); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Authorization; | ||||
| using Microsoft.AspNetCore.Mvc.Authorization; | ||||
| using Microsoft.OpenApi.Models; | ||||
| using Microsoft.AspNetCore.Authentication.Google; | ||||
| using Microsoft.AspNetCore.Authentication.OAuth; | ||||
|  | ||||
|  | ||||
| TypeAdapterConfig<PutMeetingDto, Meeting>.NewConfig().Map(d => d.SpeackerImage, s => s.SpeackerImage.JoinFileNames());  | ||||
| @@ -47,6 +48,8 @@ builder.Services.AddAuthentication(opt => { | ||||
| { | ||||
|     options.ClientId = builder.Configuration["Google:ClientId"]!; | ||||
|     options.ClientSecret = builder.Configuration["Google:ClientSecret"]!; | ||||
|     options.CallbackPath = new PathString("https://cyberbloom.zetcraft.ru/api/users/signin-google-callback"); | ||||
|  | ||||
| });; | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user