Add methods to IAuthProvider interface

This commit is contained in:
ChronosX88 2020-10-08 21:10:29 +04:00
parent 42a5ffba05
commit c6fdd03908
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,14 @@ namespace Zirconium.Core.Plugins.Interfaces
{
public interface IAuthProvider
{
// Method for checking validity of access token in each message
bool TestToken(string token, JWTPayload payload);
// Method for testing password when logging in
bool TestPassword(string username, string pass);
// User registration logic
void CreateUser(string username, string pass);
string GetAuthProviderName();
}
}

View File

@ -32,11 +32,6 @@ namespace TestMongoDB
Log.Debug("Nothing found!");
}
}
public void PreInitialize(IPluginManager pluginManager)
{
}
}
class TestModel