The local oauth2 provider still needs A LOT of love. But the general oauth2 workflow works. The http api client needs an option to disable the authentication things and we need to switch to the local storage for storing access, refresh and timestamp for the client
8 lines
208 B
C#
8 lines
208 B
C#
using Moonlight.ApiServer.Database.Entities;
|
|
|
|
namespace Moonlight.ApiServer.Interfaces.OAuth2;
|
|
|
|
public interface IOAuth2Provider
|
|
{
|
|
public Task<User?> Sync(IServiceProvider provider, string accessToken);
|
|
} |