mirror of
https://github.com/cadmium-im/zirconium-sharp.git
synced 2024-12-22 17:01:50 +00:00
Add methods to IAuthProvider interface
This commit is contained in:
parent
42a5ffba05
commit
c6fdd03908
@ -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();
|
||||
}
|
||||
}
|
@ -32,11 +32,6 @@ namespace TestMongoDB
|
||||
Log.Debug("Nothing found!");
|
||||
}
|
||||
}
|
||||
|
||||
public void PreInitialize(IPluginManager pluginManager)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class TestModel
|
||||
|
Loading…
Reference in New Issue
Block a user