feat(auth): Added authentication
This commit is contained in:
parent
d85d4334f8
commit
5e100c75ed
39 changed files with 704 additions and 86 deletions
16
backend/src/Exceptions/AuthRepositoryExceptions.cs
Normal file
16
backend/src/Exceptions/AuthRepositoryExceptions.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace JellyGlass.Exceptions;
|
||||
|
||||
public class AuthRepositoryException : System.Exception
|
||||
{
|
||||
public AuthRepositoryException() { }
|
||||
public AuthRepositoryException(string message) : base(message) { }
|
||||
public AuthRepositoryException(string message, System.Exception inner) : base(message, inner) { }
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class AuthNotFoundException : AuthRepositoryException
|
||||
{
|
||||
public AuthNotFoundException() { }
|
||||
public AuthNotFoundException(string message) : base(message) { }
|
||||
public AuthNotFoundException(string message, System.Exception inner) : base(message, inner) { }
|
||||
}
|
||||
16
backend/src/Exceptions/AuthServiceExceptions.cs
Normal file
16
backend/src/Exceptions/AuthServiceExceptions.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace JellyGlass.Exceptions;
|
||||
|
||||
public class AuthServiceException : Exception
|
||||
{
|
||||
public AuthServiceException() { }
|
||||
public AuthServiceException(string message) : base(message) { }
|
||||
public AuthServiceException(string message, Exception inner) : base(message, inner) { }
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class LoginFailedException : AuthServiceException
|
||||
{
|
||||
public LoginFailedException() { }
|
||||
public LoginFailedException(string message) : base(message) { }
|
||||
public LoginFailedException(string message, System.Exception inner) : base(message, inner) { }
|
||||
}
|
||||
15
backend/src/Exceptions/SessionRepositoryExceptions.cs
Normal file
15
backend/src/Exceptions/SessionRepositoryExceptions.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
namespace JellyGlass.Exceptions;
|
||||
|
||||
public class SessionRepositoryException : Exception
|
||||
{
|
||||
public SessionRepositoryException() { }
|
||||
public SessionRepositoryException(string message) : base(message) { }
|
||||
public SessionRepositoryException(string message, Exception inner) : base(message, inner) { }
|
||||
}
|
||||
|
||||
public class SessionNotFoundException : SessionRepositoryException
|
||||
{
|
||||
public SessionNotFoundException() : base() { }
|
||||
public SessionNotFoundException(string message) : base(message) { }
|
||||
public SessionNotFoundException(string message, Exception inner) : base(message, inner) { }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue