Фикс
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 56s
Create and publish a Docker image / Deploy image (push) Successful in 3s

This commit is contained in:
2023-12-24 05:27:32 +03:00
parent ac987781fa
commit 5167076340
2 changed files with 3 additions and 12 deletions

View File

@ -1,22 +1,14 @@
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.Google;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore.Internal;
using Microsoft.IdentityModel.Tokens;
using static Consts;
namespace CyberBoom.Controllers;
[ApiController]
[Route("/api/[controller]")]
public class UsersController : ControllerBase
@ -148,7 +140,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" };
return Challenge(properties, GoogleDefaults.AuthenticationScheme);
}