{ "info": { "author": "Anish menon", "author_email": "anish@inzane.in", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "You can follow the below tutorial to know how Cognalys OTP works for web \r\n\r\nhttps://www.youtube.com/watch?v=qalwCPkVQwo\r\n\r\n\r\n\r\n\r\nin django **settings.py** mention below\r\n\r\n( Login to the cognalys dashboard and create OTP app ) \r\n\r\n1. https://cognalys.freshdesk.com/support/solutions/articles/5000048861-create-new-otp\r\n\r\n\r\nCOGNALYS_ACCESS_TOKEN = Yours \r\n\r\nCOGNALYS_APP_ID = Yours\r\n\r\n\r\n\r\nCOGNALYS_API_VERSION = Yours\r\n\r\n\r\n\r\n\r\nINSTALLED_APPS += ['djcognalys']\r\n\r\n\r\nIf you need to configure realtime facility of cognalys . you should configure as below :\r\n\r\n\r\n\r\nfrom django.http import HttpResponse,HttpResponseRedirect\r\nfrom django.views.decorators.csrf import csrf_exempt\r\n\r\nfrom django.conf import settings\r\n\r\n\r\n@csrf_exempt\r\n\r\n\r\ndef default_callback(request):\r\n\r\n\ttoken = getattr(settings, 'COGNALYS_REALTIME_API_TOKEN', '' )\r\n\r\n\tif request.POST and token != '':\r\n\t\tif request.POST.get('token') == token:\r\n\r\n\r\n\t\t\t\"Your Statement \"\r\n\t\t\t\r\n\r\n\t\t\treturn HttpResponse('', content_type=\"text/plain\")\r\n\r\n\t\telse:\r\n\r\n\t\t\treturn HttpResponse('Not Allowed', content_type=\"text/plain\")", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cognalys/django-cognalys", "keywords": "missed call verification,missed call otp, motp,", "license": "MIT", "maintainer": "", "maintainer_email": "info@cognalys.com", "name": "django-cognalys", "package_url": "https://pypi.org/project/django-cognalys/", "platform": "Django", "project_url": "https://pypi.org/project/django-cognalys/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cognalys/django-cognalys" }, "release_url": "https://pypi.org/project/django-cognalys/1.1/", "requires_dist": null, "requires_python": null, "summary": "Mobile number verification via missed call .Two factor authentication without SMS gateway", "version": "1.1" }, "last_serial": 1247024, "releases": { "1.1": [] }, "urls": [] }