Skip to main content

Simplified SDK for MOSIP Authentication

Project description

Mosip Authentication SDK

Usage

    from mosip_auth_sdk import MOSIPAuthenticator
    from mosip_auth_sdk.models import DemographicsModel, BiometricModel

    authenticator = MOSIPAuthenticator(config={
        # Your configuration settings go here.
        # Refer to authenticator-config.toml for the required values.
    })

    # Refer the DemographicsModel, BiometricModel documentation to know
    # the exact arguments to be passed in there
    demographics_data = DemographicsModel()
    biometrics = [BiometricModel(), BiometricModel()]

    # Make a KYC request
    response = authenticator.kyc(
        vid='<some_vid>',
        demographic_data=demographics_data,
        otp_value='323',  # Optional
        biometrics=biometrics,  # Optional
    )
    
    # handle response

Prerequisites for building

  • Python 3 (tested on 3.10.7), lower versions may or may not work.
  • Poetry (recommended, optional) install
    python3 -m pip install poetry
    

Dependencies for building

  python3 -m poetry install

If you don't want to use poetry you can install the requirements directly using pip

python3 -m pip install -r requirements.txt

Build

```sh
python3 -m poetry build
```

Publish

    python3 -m poetry publish

Testing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosip_auth_sdk-0.2.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosip_auth_sdk-0.2.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file mosip_auth_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: mosip_auth_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.7 Linux/5.10.0-33-amd64

File hashes

Hashes for mosip_auth_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3588cc049d81a85f0340b4a098d332dac8f757f272eb2eca89b3722f52a40315
MD5 1f79c4f8e333c6ca5516533c20c10395
BLAKE2b-256 ff51073f34d3dd78cd1f123625f5e0029a511ab52e6934df698473b1c6c2f510

See more details on using hashes here.

File details

Details for the file mosip_auth_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mosip_auth_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.7 Linux/5.10.0-33-amd64

File hashes

Hashes for mosip_auth_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 565a7d1b2c06eabea70d650e2b6e1b409d614152cea3761bb493dee5e7fa5d00
MD5 a1733f46510bee26109f5e10ee5e3c34
BLAKE2b-256 0ebf98c506d5687deb57028bb50611812a239c034680a5031b59d3e6d7965766

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page