Skip to content

Commit

Permalink
Feat/revocation (#127)
Browse files Browse the repository at this point in the history
* no message

* added new UI

* Ticketing solution logic update

- Added model to handle QR scan from ticket service
- Added blueprint of method to obtain list of auth services

* Refactored list of service method

* Implemented method to fetch list of services

* added new UI

* server list view controller

* Access token for ticketing

- Request implemented
- Model for response added

* added selected and deselected state

* List of services implemented

* Public key generation added

* Small refactoring to avoid crash

* AccessTokenRequest fixed

- Filtering for certificates added

* Selection code adjusted with model

* Comment removed

* fixed small UI bugs

* Consent screen added

- request for validation added

* Fixed UI part of selection of cert

* xnonce added

* Fixed navigation in wallet app

* Fixed navigation and cells. Added Certificate controller to navigation.

* Added services controller

* Remove obsolete sources

* Removed unnecessary fields

* minor fixes

* Replaced x-buttons

* Removed unnecessary code

* Validation request added

* Refactored ut8 string to base64decoded data

* Code clean up

* Identity services refactored

* Code clean up

* Validation Result view controller added

* fixed QR class

* Fixed navigation

* Fixed navigation

* Bug fix session

#108
#111
#113

* Added remove certificate functionality

* Added delete alert

* Fixed deleting

* Fixed reload bug in ListCertificates

* Add Developer Team

* Changed cert compare

* Fixed certificates table with edit

* Added 2 controller files to storyboard

* Fixed crash on verification result if no validation info passed

* Update project

* Scan Moved from Core

* Added viewers to storyboard

* Added remove messages to ImageViewer and PDF

* Fixed Remove action

* Removed xibs from controllers

* Minor fix storyboard

* Removed last xib

* Fixed deleting, crash with race and some textes

* Fix public in Date extention

* Added activity check

* Fixed crash with reload table

* Added flash of added item

* Added OK button

* Fixed rule cell

* Updated buttons

* Fixed Grant layout

* Minor fix

* Fix crash with adding certs

* minor fix

* Fix selecting of sertificates

* Added new version

* added logsto requests

* remove print

* Fixed posting certificates

* Added delete button

* Removed FloatingPanel, Added delete certificate button

* Finalized remove certificate

* Fixed layout

* Fixed deleting calbacks

* Removed FloatingPanel package

* Removed FloatingPanel resources

* removed unnecessary import directives

* Aded common core

* Removed errors with cert

* Fixed wallet app after core mege

* fix in project tree

* Access token info added on Certificate list screen

* fixed storyboards

* minor fixes

* Added activity indicator

* Added config

* Fixed navigation issues

* Fixed classe names in storyboards

* fixed fetch time

* Fixed reloadingData

* fixed storyboard - added reload cell

* Added reload after dismissing

* Fixed Scan of ticketing QR code

* minor changes in project tree

* Fixed page controller

* removed selected country code

* Fixed landscape orientation for iPad

* refactor UI cells

* increased build num

* temp data

* correct data

* fixed project settings

* Fixed issue - Certificate for Ticketing can not be found

* Added loading to confirm validity

* x5c type changed in PublicKeyJWK structure

Replaced x5c type of String with [String] in order to follow backend changes

* Refactor controller names and data managers

* fixed crash in ticketing

* Business data were removed from TicketingAcceptanceController controller

* Fixed back buttons

* added background

* Added Alerts to the Ticketing

* refactor project tree

* Replaced UserDefaults storage with keyChain

* removed queue from request

* Updated localization strings

* Changed in localizations

* Removed keys from Localization file

* Added Safe thread array.

* Fixed string format

* Added de-localization

* Added localisations to resource files

* Added app localised name

* Fixed localizations

* Added localized property. Added alert on save PDF, fixed alerts

* Optimised loading on main screen

* Fixed reload page on main screen

* Fixed layout in Image and PDF cells

* Fixed reload table on main screen

* upgrade version num

* Fixed Localized strings

* Added one line to localization

* Refactored Access Token functionality

* Added error processing to the ticketing

* Fix verification fields

* Fixed search of validation data

* Fixed main thread methods

* Fixed incorrect alert messages

* Updated localized strings

* Fixed json logic

* Added revocation to walllet

* removed database

* removed dismiss delegate (added timer)

* feat: revocation

Co-authored-by: Alexandr Chernyy <[email protected]>
Co-authored-by: Illia Vlasov <[email protected]>
Co-authored-by: Test <[email protected]>
Co-authored-by: ikhomiak <[email protected]>
Co-authored-by: IgorKhomiak <[email protected]>
  • Loading branch information
6 people authored Feb 28, 2022
1 parent e70994d commit db6fc44
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 338 deletions.
26 changes: 15 additions & 11 deletions DGCAWallet/Components/WalletCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ import UIKit
import SwiftDGC

class WalletCell: UITableViewCell {
@IBOutlet fileprivate weak var typeLabel: UILabel!
@IBOutlet fileprivate weak var nameLabel: UILabel!
@IBOutlet fileprivate weak var dateLabel: UILabel!

func setupCell(_ dated: DatedCertString) {
guard let cert = dated.cert else { return }

typeLabel.text = cert.certTypeString
nameLabel.text = cert.fullName
dateLabel.text = String(format: "Scanned %@".localized, dated.date.localDateString)
}
@IBOutlet fileprivate weak var typeLabel: UILabel!
@IBOutlet fileprivate weak var nameLabel: UILabel!
@IBOutlet fileprivate weak var dateLabel: UILabel!
@IBOutlet fileprivate weak var revocationLabel: UILabel!

func setupCell(_ dated: DatedCertString) {
guard let cert = dated.cert else { return }

typeLabel.text = cert.certTypeString
nameLabel.text = cert.fullName
dateLabel.text = String(format: "Scanned %@".localized, dated.date.localDateString)
guard let cert = dated.cert else { return }
revocationLabel.isHidden = cert.isRevoked ?? true
revocationLabel.text = cert.isRevoked == true ? "Certificate revoked" : ""
}
}
5 changes: 5 additions & 0 deletions DGCAWallet/Models/DataStorageManagement/DataCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ class DataCenter {
GatewayConnection.loadValueSetsFromServer { list, error in
group.leave()
}

group.enter()
GatewayConnection.lookup(certStrings: certStrings) { success, _, _ in
group.leave()
}

group.enter()
GatewayConnection.loadRulesFromServer { listRules, error in
Expand Down
Loading

0 comments on commit db6fc44

Please sign in to comment.