{"id":19312091,"url":"https://github.com/authentiqid/examples-flask","last_synced_at":"2025-09-10T01:32:27.070Z","repository":{"id":94335137,"uuid":"57307760","full_name":"AuthentiqID/examples-flask","owner":"AuthentiqID","description":"Example code integrating Authentiq with Python Flask ","archived":false,"fork":false,"pushed_at":"2018-12-18T23:10:30.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:44:55.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AuthentiqID.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-28T14:22:22.000Z","updated_at":"2021-02-06T15:40:06.000Z","dependencies_parsed_at":"2023-07-28T01:00:41.613Z","dependency_job_id":null,"html_url":"https://github.com/AuthentiqID/examples-flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AuthentiqID/examples-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AuthentiqID%2Fexamples-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AuthentiqID%2Fexamples-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AuthentiqID%2Fexamples-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AuthentiqID%2Fexamples-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AuthentiqID","download_url":"https://codeload.github.com/AuthentiqID/examples-flask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AuthentiqID%2Fexamples-flask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274396490,"owners_count":25277391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:32:41.266Z","updated_at":"2025-09-10T01:32:27.028Z","avatar_url":"https://github.com/AuthentiqID.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentiq Flask examples\n\nThis repository contains two examples showing how to integrate [Authentiq Connect](https://www.authentiq.com/) into your Python applications, allowing people to sign in using their [Authentiq ID](https://itunes.apple.com/gb/app/authentiq-id/id964932341).\n\n\u003e We'll add another example soon that shows how to connect Authentiq to your user database to easily add two-step verification (through any [TOTP](https://tools.ietf.org/html/rfc6238)-compatible app, e.g. Google Authenticator) and passwordless logins on top of your existing username \u0026 password database.\n\n## Installation\n\nAssuming you have cloned this repository already, on Ubuntu 16.04, install the following packages:\n\n    sudo apt-get install python-tox python3-flask python3-requests python3-requests-oauthlib python3-jwt\n\nOr using a virtual environment:\n\n    virtualenv -p /usr/bin/python3 env\n    pip install tox flask requests requests-oauthlib jwt\n\n\n## Example 1: Plain OAuth 2.0 — `example_basic.py`\n\nThis example demonstrates how to use Authentiq Connect with an existing 3rd-party OAuth 2.0 client library — the wonderful [requests-oauthlib](https://requests-oauthlib.readthedocs.org/en/latest/) in this case. It simply signs in using Authentiq and displays the retrieved user information.\n\n    python3 example_basic.py\n\n## Example 2: Native Authentiq JS — `example_native.py`\n\nThis example uses the [AuthentiqJS](https://github.com/AuthentiqID/authentiq-js) snippet for a richer authentication experience. In particular it shows the following features:\n\n- A faster authentication flow using an OpenID Connect ID Token\n- Instant sign-out from phone using the Authentiq ID app\n\n\n    python3 example_native.py\n\n### Tests\n\nSimply run tox to run tests on Python 2 and Python 3.\n\n    tox\n\n## Contributing\n\nPlease help us improve these examples by opening an issue or a pull request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthentiqid%2Fexamples-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauthentiqid%2Fexamples-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthentiqid%2Fexamples-flask/lists"}