Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
egg528 committed Feb 29, 2024
1 parent 8be5bbc commit c338abe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import io.jsonwebtoken.Jwts
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo
import org.bouncycastle.openssl.PEMParser
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.core.convert.converter.Converter
import org.springframework.core.io.ClassPathResource
import org.springframework.http.RequestEntity
Expand All @@ -21,6 +23,7 @@ import kotlin.math.log


class TokenRequestEntityConverter: Converter<OAuth2AuthorizationCodeGrantRequest, RequestEntity<*>> {
private val log: Logger = LoggerFactory.getLogger(javaClass)

private val defaultConverter = OAuth2AuthorizationCodeGrantRequestEntityConverter()
private val APPLE_URL = "https://appleid.apple.com"
Expand All @@ -34,8 +37,9 @@ class TokenRequestEntityConverter: Converter<OAuth2AuthorizationCodeGrantRequest
val registrationId = req.clientRegistration.registrationId
val params = entity.body as LinkedMultiValueMap<String, String>

log.error("test")
if(registrationId.contains("apple")) {
println(createClientSecret())
log.error(createClientSecret())
params.set("client_secret", createClientSecret())
}

Expand Down

0 comments on commit c338abe

Please sign in to comment.