How woojae9488/oauthclient works
Main Components
A. Client Layer
• Web Interface (login.html)
• Authentication Filters
• TokenAuthenticationFilter
• TwitterCallbackAuthenticationFilter
• TwitterLoginProcessingFilter
B. Security Layer
• WebSecurityConfig
• OAuth Client Configurations
• OAuth2 (Kakao, Naver)
• OAuth1 (Twitter)
C. Core Service Layer
• AuthorizationTokenService
• OAuth2UserService
• Authentication Success Handler
D. Data Layer
• Repositories
• SocialUserRepository
• TokenStoreRepository
• Models
• SocialUser
• TokenStore
• OAuth User Attributes
E. External Services
• Kakao OAuth2 Provider
• Naver OAuth2 Provider
• Twitter OAuth1 Provider
Key Flows to Highlight
a. OAuth2.0 Flow (Kakao, Naver):
• Path from login request through OAuth2 client configuration
• Token handling and user attribute processing
• Storage of social user data
b. OAuth1.0a Flow (Twitter):
• Demonstrate the specific Twitter authentication process
• Callback handling mechanism
• Token management flow
Important Details
a. Configuration Components:
• Properties configuration (OAuth1ClientProperties, OAuth2ClientProperties)
• Authorization token properties
• Security configurations
b. Authentication Aspects:
• AOP components (AuthenticatedUser, AuthenticatedUserAspect)
• Token handling mechanisms
• User principal management
c. Data Models:
• Token attributes (Access, Refresh)
• User roles and permissions
• Social user data structure
Additional Recommendations
• Version information for major components
• Notes about supported OAuth providers
• Error handling paths
• Security boundaries