Skip to content

Commit

Permalink
Release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Oct 5, 2024
1 parent 54e8b35 commit 75b5811
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
jdk.version=17
artifactVersion=2.1.4-SNAPSHOT
artifactVersion=2.2.0
androidAttestationVersion=1.6.0
13 changes: 9 additions & 4 deletions sample/backend/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# Dead-Simple Key Attestation Demo Service

This dead-simple key attestation demo service showcases [our Attestation Library](https://github.com/a-sit-plus/warden) in action.
This dead-simple key attestation demo service showcases [WARDEN](https://github.com/a-sit-plus/warden) in action.
Apps for [Android](../client-android) and [iOS](../client-ios) demonstrate the respective client parts.
For in-depth documentation regarding the Attestation library, please refer to the [official documentation](../../README.md).

**NOTE: This still uses the legacy key attestation emulation for iOS. See the [official documentation](../../README.md) for notes about
deprecation.**
A new, integrated attestation suite based on WARDEN is in the works, with full KMP/CMP support, meaning you'll
never have to worry about the wire format and how client and server should act.

## Overview

This service is based on [ktor](https://ktor.io) and establishes trust in mobile clients based on
[our Attestation Library](https://github.com/a-sit-plus/warden). This concrete incarnation utilises the attestation library's unified
interface to provide key attestation on both Android and iOS.
[WARDEN](https://github.com/a-sit-plus/warden). This concrete incarnation utilises the attestation library's unified
legacy interface to provide key attestation on both Android and iOS.

The process to attest a mobile client works a follows:

Expand Down Expand Up @@ -112,7 +117,7 @@ This message is for your eyes only.
```

## Development
Minimum JDK Version required: 11.
Minimum JDK Version required: 17.

To produce a runnable jar, run `/.gradlew buildFatJar`

Expand Down
2 changes: 1 addition & 1 deletion sample/backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ kotlin {
}
}
group = "at.asitplus"
version = "0.0.4"
version = "0.0.5"
application {
mainClass.set("io.ktor.server.cio.EngineMain")

Expand Down
2 changes: 1 addition & 1 deletion sample/backend/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ktor_version=2.2.4
kotlin_version=2.0.0
logback_version=1.2.11
kotlin.code.style=official
attestation_version=2.1.0
attestation_version=2.2.0
11 changes: 6 additions & 5 deletions warden/src/main/kotlin/Warden.kt
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,6 @@ class Warden(
challenge: ByteArray
): KeyAttestation<PublicKey> =
when (attestationProof) {
is SelfAttestation, is IosLegacyHomebrewAttestation -> KeyAttestation<PublicKey>(
null,
AttestationResult.Error("${attestationProof::class.simpleName} is unsupported")
)

is IosHomebrewAttestation -> {
if (IosHomebrewAttestation.ClientData(
attestationProof.parsedClientData.publicKey,
Expand Down Expand Up @@ -239,6 +234,12 @@ class Warden(
}
}

//Signum will remove IosLegacyHomebrewAttestation in new version
else -> KeyAttestation(
null,
AttestationResult.Error("${attestationProof::class.simpleName} is unsupported")
)

}

/**
Expand Down

0 comments on commit 75b5811

Please sign in to comment.