finally implemented oauth 2.0

This commit is contained in:
2024-07-27 12:21:46 +07:00
parent d332cd0d96
commit 37146568a8
10 changed files with 260 additions and 24 deletions

View File

@ -6,6 +6,6 @@ namespace Yuna.Website.Server.Services.OpenAuthService
{
public bool ValidateLoginRequest(string responseType, string clientId, string host);
public UserBinding CreateBinding(User user);
public UserBinding? GetByCode(string code);
}
}

View File

@ -43,5 +43,10 @@ namespace Yuna.Website.Server.Services.OpenAuthService
return result;
}
public UserBinding? GetByCode(string code)
{
return _userBindingsRepository.GetUserBinding(code);
}
}
}