Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions attestation-gateway/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,31 @@ pub enum BundleIdentifier {
// World App
#[serde(rename = "com.worldcoin")]
AndroidProdWorldApp,

#[serde(rename = "com.worldcoin.staging")]
AndroidStageWorldApp,

#[serde(rename = "com.worldcoin.dev")]
AndroidDevWorldApp,

#[serde(rename = "org.worldcoin.insight")]
IOSProdWorldApp,

#[serde(rename = "org.worldcoin.insight.staging")]
IOSStageWorldApp,

// World ID
#[serde(rename = "org.world.id")]
IOSProdWorldID,

#[serde(rename = "org.world.staging.id")]
IOSStageWorldID,

#[serde(rename = "org.world.id.staging")]
AndroidStageWorldID,

#[serde(rename = "org.world.id.dev")]
AndroidDevWorldID,
}

impl BundleIdentifier {
Expand All @@ -157,7 +166,8 @@ impl BundleIdentifier {
Self::AndroidProdWorldApp
| Self::AndroidStageWorldApp
| Self::AndroidDevWorldApp
| Self::AndroidStageWorldID => Platform::Android,
| Self::AndroidStageWorldID
| Self::AndroidDevWorldID => Platform::Android,
Self::IOSProdWorldApp
| Self::IOSStageWorldApp
| Self::IOSProdWorldID
Expand All @@ -172,7 +182,7 @@ impl BundleIdentifier {
// cspell:disable-next-line
Some("nSrXEn8JkZKXFMAZW0NHhDRTHNi38YE2XCvVzYXjRu8")
}
Self::AndroidDevWorldApp | Self::AndroidStageWorldID => {
Self::AndroidDevWorldApp | Self::AndroidStageWorldID | Self::AndroidDevWorldID => {
Some("6a6a1474b5cbbb2b1aa57e0bc3")
}
// World ID Android staging is currently only reached via the Laissez-Passer
Expand All @@ -193,7 +203,7 @@ impl BundleIdentifier {
Self::AndroidProdWorldApp | Self::AndroidStageWorldApp => {
Some("nSrXEn8JkZKXFMAZW0NHhDRTHNi38YE2XCvVzYXjRu8=")
}
Self::AndroidDevWorldApp | Self::AndroidStageWorldID => {
Self::AndroidDevWorldApp | Self::AndroidStageWorldID | Self::AndroidDevWorldID => {
Some("o0Fu39yqrsxeWSucqge7eOzG8xrsRAn0nKbTtN/x2+A=")
}
// See note on `certificate_sha256_digest` above.
Expand All @@ -210,7 +220,8 @@ impl BundleIdentifier {
Self::AndroidProdWorldApp
| Self::AndroidStageWorldApp
| Self::AndroidDevWorldApp
| Self::AndroidStageWorldID => None,
| Self::AndroidStageWorldID
| Self::AndroidDevWorldID => None,
// cspell:disable
Self::IOSStageWorldApp => Some("35RXKB6738.org.worldcoin.insight.staging"),
Self::IOSProdWorldApp => Some("35RXKB6738.org.worldcoin.insight"),
Expand All @@ -228,6 +239,7 @@ impl Display for BundleIdentifier {
Self::AndroidStageWorldApp => write!(f, "com.worldcoin.staging"),
Self::AndroidDevWorldApp => write!(f, "com.worldcoin.dev"),
Self::AndroidStageWorldID => write!(f, "org.world.id.staging"),
Self::AndroidDevWorldID => write!(f, "org.world.id.dev"),
Self::IOSProdWorldApp => write!(f, "org.worldcoin.insight"),
Self::IOSStageWorldApp => write!(f, "org.worldcoin.insight.staging"),
Self::IOSProdWorldID => write!(f, "org.world.id"),
Expand Down
Loading