finally implemented oauth 2.0
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -43,5 +43,10 @@ namespace Yuna.Website.Server.Services.OpenAuthService
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public UserBinding? GetByCode(string code)
|
||||
{
|
||||
return _userBindingsRepository.GetUserBinding(code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user