forked from EWC-consortium/eudi-wallet-oid4vc-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #8: Delete subfolder eudi-wallet-oidc-ios and rename to use Camel…
…Case
- Loading branch information
1 parent
9e0b425
commit 7bd2bda
Showing
35 changed files
with
45 additions
and
69 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
Tests/eudi-wallet-oidc-iosTests/eudi_wallet_oidc_iosTests.swift
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,30 @@ | ||
import XCTest | ||
@testable import eudi_wallet_oidc_ios | ||
|
||
final class eudi_wallet_oidc_iosTests: XCTestCase { | ||
func testRecieveAndStoreCredential() async throws { | ||
// XCTest Documentation | ||
// https://developer.apple.com/documentation/xctest | ||
|
||
// Defining Test Cases and Test Methods | ||
// https://developer.apple.com/documentation/xctest/defining_test_cases_and_test_methods | ||
|
||
// MARK: Resolve credential offer (EWC RFC 001 - 3.1, 3.2) | ||
// Credential offer is one time usable, please ensure it is replaced before running this test | ||
// FIXME: Throw error if credential offer is not resolved | ||
var inTimeCredentialOffer = "openid-credential-offer://?credential_offer_uri=https://oid4vc.igrant.io/organisation/a6b946b8-06a3-445f-8b75-ec0e7b17a040/service/credential-offer/eb0aa2d6-e9f0-4af9-840b-95b468cd7870" | ||
var resolvedCredentialOffer = try await IssueService.shared.resolveCredentialOffer(credentialOfferString: inTimeCredentialOffer) | ||
XCTAssertEqual(resolvedCredentialOffer?.grants?.authCode?.preAuthorizedCode, nil) | ||
XCTAssertNotEqual(resolvedCredentialOffer?.grants?.authorizationCode?.issuerState, nil) | ||
|
||
// MARK: Discovery (EWC RFC 001 - 3.3, 3.4) | ||
var issuerConfig = try? await DiscoveryService.shared.getIssuerConfig(credentialIssuerWellKnownURI: resolvedCredentialOffer?.credentialIssuer) | ||
var authConfig = try? await DiscoveryService.shared.getAuthConfig(authorisationServerWellKnownURI: issuerConfig?.authorizationServer ?? issuerConfig?.credentialIssuer) | ||
// debugPrint(issuerConfig) | ||
// debugPrint(authConfig) | ||
|
||
XCTAssertNotNil(authConfig?.authorizationEndpoint) | ||
} | ||
|
||
|
||
} |
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...-wallet-oidc-ios/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
eudi-wallet-oidc-ios/Tests/eudi-wallet-oidc-iosTests/eudi_wallet_oidc_iosTests.swift
This file was deleted.
Oops, something went wrong.