Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourGreen
titleapproved

Approver

Nadzeya Karaban

...

Using this method, you don’t need to care about handling the analysis process with Gini Bank API Library, you only provide your API credentials and a delegate to get the analysis results.

Code Block
languageswift
let viewController = GiniCapture.viewController(withClient: client,
                                                configuration: giniConfiguration,
                                                resultsDelegate: resultsDelegate)

present(viewController, animated: true, completion:nil)

If you want to use a transparent proxy with your own authentication, you can specify your own domain and add AlternativeTokenSource protocol implementation:

Code Block
languageswift
    let apiLib =  GiniBankAPI.Builder(customApiDomainviewController = GiniCapture.viewController(withClient: client,
                                                    configuration: configuration,
                                                    resultsDelegate: resultsDelegate,
                                                    api: .custom(domain: "api.custom.net",
                                 alternativeTokenSource: MyAlternativeTokenSource)                                  .build(tokenSource: MyAlternativeTokenSource))

The token you provide is added as a bearer token to all api.custom.net requests.

Optionally, if you want to use Certificate pinning, provide metadata for the upload process. You can pass both your public key pinning configuration (see TrustKit repo for more information)You can also specify a custom path segment if your proxy URL requires it:

Code Block
languageswift
    let giniApiLib = GiniBankAPIviewController = GiniCapture.viewController(withClient: client,
                                                    .Builder(client: Client(id: "your-id",configuration: configuration,
                                                    resultsDelegate: resultsDelegate,
                                                     secretapi: .custom(domain: "your-secretapi.custom.net",
                                     domain                            path: "your-domain"),/custom/path",
                  api: .default,                                      pinningConfig: yourPublicPinningConfig)         .build()
Info

The document metadata for the upload process is intended to be used for reporting.

Cfm card
selectedUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895105/Certificate+Pinning+DI
layoutSimple
externalUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895105/Certificate+Pinning+DI
color#FFF6CE
filterSpacefalse
destinationexternalUrl
textColorPaletteDefault
iddfb18wsf8af
bodyHow to use public key pinning?
titleCertificate Pinning
textColor#000000
backgroundColorPaletteDefault

...

tokenSource: MyAlternativeTokenSource))

Rw pagetree macro
titleSee more:
rootPage@current