-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add JWT verify (jvm) in common module, removed verify from Locl…
…KMS and AmazonKMS
- Loading branch information
1 parent
ee2457f
commit 89cf7f6
Showing
14 changed files
with
88 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...d-federation-common/src/commonMain/kotlin/com/sphereon/oid/fed/common/crypto/JwtVerify.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.sphereon.oid.fed.common.crypto | ||
|
||
expect fun verify(jwtToken: String): Boolean |
5 changes: 5 additions & 0 deletions
5
...id-federation-common/src/jsMain/kotlin/com/sphereon/oid/fed/common/crypto/JwtVerify.js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.sphereon.oid.fed.common.crypto | ||
|
||
actual fun verify(jwtToken: String): Boolean { | ||
TODO("Not yet implemented") | ||
} |
56 changes: 56 additions & 0 deletions
56
...-federation-common/src/jvmMain/kotlin/com/sphereon/oid/fed/common/crypto/JwtVerify.jvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.sphereon.oid.fed.common.crypto | ||
|
||
import com.nimbusds.jose.JOSEException | ||
import com.nimbusds.jose.crypto.ECDSAVerifier | ||
import com.nimbusds.jose.crypto.RSASSAVerifier | ||
import com.nimbusds.jose.jwk.ECKey | ||
import com.nimbusds.jose.jwk.JWK | ||
import com.nimbusds.jose.jwk.RSAKey | ||
import com.nimbusds.jwt.SignedJWT | ||
import com.sphereon.oid.fed.common.logging.Logger | ||
import com.sphereon.oid.fed.openapi.models.EntityConfigurationStatement | ||
import kotlinx.serialization.encodeToString | ||
import kotlinx.serialization.json.Json | ||
import kotlinx.serialization.json.jsonArray | ||
import kotlinx.serialization.json.jsonObject | ||
import kotlinx.serialization.json.jsonPrimitive | ||
import java.text.ParseException | ||
|
||
actual fun verify(jwtToken: String): Boolean { | ||
return try { | ||
val json = Json { ignoreUnknownKeys = true } | ||
val signedJWT = SignedJWT.parse(jwtToken) | ||
val payload = json.decodeFromString<EntityConfigurationStatement>(signedJWT.payload.toString()) | ||
|
||
//Filtering key from array of jwks | ||
val jwkArray = payload.jwks.get("keys")?.jsonArray | ||
val filteredJwk = jwkArray?.filter { | ||
val value: String = it.jsonObject.get("kid")?.jsonPrimitive?.content ?: "" | ||
value == signedJWT.header.keyID | ||
} | ||
|
||
val jwk: JWK = JWK.parse(Json.encodeToString(filteredJwk?.get(0))) | ||
|
||
when (jwk) { | ||
is RSAKey -> { | ||
val publicKey = jwk.toRSAPublicKey() | ||
val verifier = RSASSAVerifier(publicKey) | ||
signedJWT.verify(verifier) | ||
} | ||
|
||
is ECKey -> { | ||
val publicKey = jwk.toECPublicKey() | ||
val verifier = ECDSAVerifier(publicKey) | ||
signedJWT.verify(verifier) | ||
} | ||
|
||
else -> false // Unsupported key type | ||
} | ||
} catch (e: ParseException) { | ||
Logger.error("OIDF", "Exception", e) | ||
false | ||
} catch (e: JOSEException) { | ||
Logger.error("OIDF", "Exception", e) | ||
false | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...-federation-common/src/jvmTest/kotlin/com/sphereon/oid/fed/common/crypto/JwtVerifyTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.sphereon.oid.fed.common.crypto | ||
|
||
import kotlin.test.Test | ||
import kotlin.test.assertTrue | ||
|
||
class JwtVerifyTest { | ||
|
||
@Test | ||
fun verifyTest() { | ||
val jwt = | ||
"eyJraWQiOiJkZWZhdWx0UlNBU2lnbiIsInR5cCI6ImVudGl0eS1zdGF0ZW1lbnQrand0IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJodHRwczovL29pZGMucmVnaXN0cnkuc2Vydml6aWNpZS5pbnRlcm5vLmdvdi5pdCIsIm1ldGFkYXRhIjp7ImZlZGVyYXRpb25fZW50aXR5Ijp7ImZlZGVyYXRpb25fZmV0Y2hfZW5kcG9pbnQiOiJodHRwczovL29pZGMucmVnaXN0cnkuc2Vydml6aWNpZS5pbnRlcm5vLmdvdi5pdC9mZXRjaCIsImZlZGVyYXRpb25fcmVzb2x2ZV9lbmRwb2ludCI6Imh0dHBzOi8vb2lkYy5yZWdpc3RyeS5zZXJ2aXppY2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bRdlTmlP-h3q3Hxdkz-fXicSZxCitFymNcwLyonzEJuFIZrgWcYbPiBnvxDCsgXkM3cEwO-zEHFbI6wf1A2ludm8iCMmQwgu-CDesHgw3jIOa_7gUTxgdXL44LKhiizoInHS5wywsBKtKSjQfK34Se1pthp_9sECtTux7DDgCCedd10JnLD7uGSTgb_aWwFvL7s3obDKMlbtE0hr54D11k8Ch150im6L-cds_vmMvt3RavBuZVBVS7XBcMCnzuRy2SI6Fv5wCyqLkyeFJ91jslj96nq1RF10cWCtnjg" | ||
assertTrue { verify(jwt) } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters