Skip to content

Commit

Permalink
stop using deprecated class
Browse files Browse the repository at this point in the history
  • Loading branch information
jksolbakken committed Jul 18, 2023
1 parent 97d2e30 commit 83b73c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.nimbusds.jose.JWSHeader
import com.nimbusds.jose.crypto.RSASSASigner
import com.nimbusds.jose.jwk.KeyUse
import com.nimbusds.jose.jwk.RSAKey
import com.nimbusds.jose.jwk.source.RemoteJWKSet
import com.nimbusds.jose.jwk.source.JWKSourceBuilder
import com.nimbusds.jose.proc.JWSVerificationKeySelector
import com.nimbusds.jose.proc.SecurityContext
import com.nimbusds.jwt.JWTClaimsSet
Expand Down Expand Up @@ -141,7 +141,7 @@ fun SignedJWT.verifyWith(
): JWTClaimsSet {
return DefaultJWTProcessor<SecurityContext?>()
.apply {
jwsKeySelector = JWSVerificationKeySelector(JWSAlgorithm.RS256, RemoteJWKSet(jwkSetUri.toUrl()))
jwsKeySelector = JWSVerificationKeySelector(JWSAlgorithm.RS256, JWKSourceBuilder.create<SecurityContext>(jwkSetUri.toUrl()).build())
jwtClaimsSetVerifier = DefaultJWTClaimsVerifier(
JWTClaimsSet.Builder()
.issuer(issuer.toString())
Expand Down

0 comments on commit 83b73c1

Please sign in to comment.