Coverage for src/lexigram/auth/authn/__init__.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-25 12:26 +0800

1"""Authentication (AuthN) - Identity verification and session management""" 

2 

3from __future__ import annotations 

4 

5from lexigram.auth.authn._binding import TokenBindingConfig 

6from lexigram.auth.authn.account_verification import AccountVerificationService 

7from lexigram.auth.authn.api_key import APIKeyAuthenticator, APIKeyConfig 

8from lexigram.auth.authn.blacklist import JWTBlacklist 

9from lexigram.auth.authn.google_oauth import GoogleOAuthService 

10from lexigram.auth.authn.jwt import JWTTokenManager 

11from lexigram.auth.authn.oauth2 import OAuth2IdentityProvider, OAuth2Manager 

12from lexigram.auth.authn.password_reset import PasswordResetService 

13from lexigram.auth.authn.relay import RelayApiKeyVerifier 

14from lexigram.auth.authn.schemas import ( 

15 LoginRequest, 

16 OAuth2AuthorizeRequest, 

17 OAuth2TokenRequest, 

18 PasswordResetConfirm, 

19 PasswordResetRequest, 

20 RefreshTokenRequest, 

21 RegisterRequest, 

22 TokenResponse, 

23 UserProfile, 

24) 

25from lexigram.auth.authn.security import PasswordHasher, PasswordPolicy 

26from lexigram.auth.authn.services import ( 

27 AuthenticationService, 

28 LockoutConfig, 

29 LoginAttemptTracker, 

30) 

31from lexigram.auth.authn.user_service import UserService 

32from lexigram.auth.models.user import User 

33from lexigram.contracts.auth.user import AuthenticatedUserProtocol 

34 

35__all__ = [ 

36 "APIKeyAuthenticator", 

37 "APIKeyConfig", 

38 "AccountVerificationService", 

39 "AuthenticatedUserProtocol", 

40 "AuthenticationService", 

41 "GoogleOAuthService", 

42 "JWTBlacklist", 

43 "JWTTokenManager", 

44 "LockoutConfig", 

45 "LoginAttemptTracker", 

46 "LoginRequest", 

47 "OAuth2AuthorizeRequest", 

48 "OAuth2IdentityProvider", 

49 "OAuth2Manager", 

50 "OAuth2TokenRequest", 

51 "PasswordHasher", 

52 "PasswordPolicy", 

53 "PasswordResetConfirm", 

54 "PasswordResetRequest", 

55 "PasswordResetService", 

56 "RefreshTokenRequest", 

57 "RegisterRequest", 

58 "RelayApiKeyVerifier", 

59 "TokenBindingConfig", 

60 "TokenResponse", 

61 "User", 

62 "UserProfile", 

63 "UserService", 

64]