feat(auth): Added authentication

This commit is contained in:
Fishandchips321 2026-03-05 12:34:55 +00:00
parent d85d4334f8
commit 5e100c75ed
39 changed files with 704 additions and 86 deletions

View 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) { }
}

View 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) { }
}

View 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) { }
}