Skip to content

Commit

Permalink
Merge pull request #87 from velocitycareerlabs/VL-6178-verify-issuer.id
Browse files Browse the repository at this point in the history
verify issuer.id instead of iss
  • Loading branch information
michaelavoyan authored Feb 1, 2024
2 parents dbe127f + 7a4f8fb commit decdb6f
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 164 deletions.
4 changes: 2 additions & 2 deletions VCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
defaultConfig {
minSdk 24
targetSdk 33
versionName "1.23.2"
versionCode 121
versionName "1.23.3"
versionCode 123
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,11 @@ internal class Utils {
}
return allOffers
}

fun getCredentialIssuerId(jwtCredential: VCLJwt): String? {
val vc: Map<*, *>? = jwtCredential.payload?.toJSONObject()?.get("vc") as? Map<*, *>
return (vc?.get("issuer") as? Map<*, *>)?.get("id") as? String
?: vc?.get("issuer") as? String
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ internal class CredentialIssuerVerifierImpl(
?: completeContext
findKeyForPrimaryOrganizationValue(activeContext)?.let { K ->
Utils.getIdentifier(K, credentialSubject)?.let { did ->
if (jwtCredential.iss == did) {
// Comparing issuer.id instead of iss
// https://velocitycareerlabs.atlassian.net/browse/VL-6178?focusedCommentId=46933
// https://velocitycareerlabs.atlassian.net/browse/VL-6988
// if (jwtCredential.iss == did)
if (Utils.getCredentialIssuerId(jwtCredential) == did) {
isCredentialVerified = true
} else {
globalError =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ class CredentialMocks {
"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6dmVsb2NpdHk6djI6MHgxZTgzMzA0NGVmOTU5NjJlMTMwYjRiZWY5MTdkNTc4NDE1YmMxZGE1OjE1NjY1Njk2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LCJpYXQiOjE3MDMxNDQyMjF9.cExeY-Qu9WaYV9U5mWKDirdIMilVoPmixDgSkZsmOZCBt99vgfHtlPfyAW-Ez3HlcCwK0v5E8xjhV-IixR36NQ"

const val JwtCredentialsFromRegularIssuer =
"[\"$JwtCredentialEducationDegreeRegistrationFromRegularIssuer\", \"$JwtCredentialEmploymentPastFromRegularIssuer\"]"
Expand All @@ -48,6 +54,10 @@ class CredentialMocks {
const val JwtCredentialsWithoutSubject =
"[\"$JwtCredEmailWithoutSubjectJwt\", \"$JwtCredPhoneWithoutSubjectJwt\"]"

const val JwtCredentialsOpenBadgeValid = "[$JwtCredentialOpenBadgeValid]"

const val JwtCredentialsOpenBadgeInvalid = "[$JwtCredentialOpenBadgeInvalid]"

const val JwtEmptyCredentials = "[]"
}
}
Loading

0 comments on commit decdb6f

Please sign in to comment.