Skip to content

Commit

Permalink
✨ local 프로파일 sms 인증 방식 변경 (cool sms -> discord)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Nov 11, 2024
1 parent fdcf41d commit 0f14154
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component

@Component
@Profile("dev")
@Profile("dev", "local")
class AuthCodeSmsSenderDiscordAdapter(
private val discordClient: DiscordClient
) : AuthCodeSmsSender {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody
name = "discord",
url = "\${discord.auth-sms-hook-url}"
)
@Profile("dev")
@Profile("dev", "local")
interface DiscordClient {

@PostMapping(consumes = [MediaType.APPLICATION_JSON_VALUE])
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/rest/src/main/resources/application-rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ spring:
config:
activate:
on-profile: local
discord:
auth-sms-hook-url: ${DISCORD_AUTH_SMS_HOOK_URL}
---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component

@Component
@Profile("!dev")
@Profile("prod")
class AuthCodeSmsSenderCoolSmsAdapter(
private val smsProperties: SmsProperties,
private val defaultMessageService: DefaultMessageService,
Expand Down

0 comments on commit 0f14154

Please sign in to comment.