Skip to content

Commit

Permalink
chore: 에러 해결용 검증 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Jul 3, 2024
1 parent 48f8b5d commit 4c20253
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class OidcService(
)
).build().verify(token)
} catch (e: Exception) {
throw InvalidTokenException(ErrorCode.INVALID_TOKEN)
}
}
return null
Expand All @@ -129,7 +130,7 @@ class OidcService(
val verifyAud = token.audience.firstOrNull() == aud
val verifyIssuer = token.issuer == iss

logger.info { "2" }
logger.info { "2 ${Date()} ${token.expiresAt} ${token.audience.firstOrNull()} $aud ${token.issuer} $iss" }
if (!verifyTime || !verifyAud || !verifyIssuer) {
throw InvalidTokenException(ErrorCode.INVALID_TOKEN)
}
Expand Down

0 comments on commit 4c20253

Please sign in to comment.