Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.asap.client.oauth

import com.asap.client.oauth.platform.GoogleOAuthRetrieveHandler
import com.asap.client.oauth.platform.KakaoOAuthRetrieveHandler
import com.asap.client.oauth.platform.NaverOAuthRetrieveHandler
import com.asap.domain.user.enums.SocialLoginProvider
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.context.annotation.Bean
Expand All @@ -9,11 +11,15 @@ import org.springframework.context.annotation.Configuration
@Configuration
class OAuthConfig(
private val kakaoOAuthRetrieveHandler: KakaoOAuthRetrieveHandler,
private val googleOAuthRetrieveHandler: GoogleOAuthRetrieveHandler,
private val naverOAuthRetrieveHandler: NaverOAuthRetrieveHandler,
) {
@Bean
@Qualifier("oAuthRetrieveHandlers")
fun oAuthRetrieveHandlers(): Map<SocialLoginProvider, OAuthRetrieveHandler> =
mapOf(
SocialLoginProvider.KAKAO to kakaoOAuthRetrieveHandler as OAuthRetrieveHandler,
SocialLoginProvider.GOOGLE to googleOAuthRetrieveHandler as OAuthRetrieveHandler,
SocialLoginProvider.NAVER to naverOAuthRetrieveHandler as OAuthRetrieveHandler,
)
}