{"id":21590236,"url":"https://github.com/corbado/example-passkeys-python-flask","last_synced_at":"2025-04-10T21:56:32.097Z","repository":{"id":195042254,"uuid":"691579585","full_name":"corbado/example-passkeys-python-flask","owner":"corbado","description":"Python Flask passkey repository of a sample app that offers passkey authentication.","archived":false,"fork":false,"pushed_at":"2024-10-26T10:13:56.000Z","size":35,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T21:56:20.492Z","etag":null,"topics":["faceid","fido2","flask","passkey","passkeys","python","touchid","webauthn"],"latest_commit_sha":null,"homepage":"https://www.corbado.com/passkeys/flask","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corbado.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-14T13:17:06.000Z","updated_at":"2025-01-12T17:57:39.000Z","dependencies_parsed_at":"2024-10-20T10:49:06.943Z","dependency_job_id":null,"html_url":"https://github.com/corbado/example-passkeys-python-flask","commit_stats":null,"previous_names":["corbado/example-passkeys-python-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-python-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-python-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-python-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-python-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corbado","download_url":"https://codeload.github.com/corbado/example-passkeys-python-flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305839,"owners_count":21081574,"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","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":["faceid","fido2","flask","passkey","passkeys","python","touchid","webauthn"],"created_at":"2024-11-24T16:17:12.272Z","updated_at":"2025-04-10T21:56:32.068Z","avatar_url":"https://github.com/corbado.png","language":"HTML","readme":"# Flask Passkey Example App\r\n\r\n## Project Overview\r\n\r\nThis project implements a web application with a login system using Corbado's passkey-first authentication service\r\nintegrated with a Flask backend. The application consists of two main pages: a login page and a home page. Once users\r\nlog in successfully via the Corbado service on the login page, they are redirected to the home page where they can log\r\nout and view protected content.\r\n\r\nPlease see the [full blog post](https://www.corbado.com/blog/passkeys-python-flask) to understand the detailed steps needed to integrate passkeys into Flask apps.\r\n\r\n## Tools and Technologies Used\r\n\r\n- **Flask**: A lightweight WSGI web application framework in Python, used to build the backend of the application.\r\n- **Corbado Python SDK**: A comprehensive Python SDK for interacting with Corbado services.\r\n- **Python-dotenv**: A Python package to read key-value pairs from a `.env` file and set them as environment variables.\r\n- **HTML \u0026 CSS**: Used to structure and style the frontend of the application.\r\n\r\n## Features\r\n\r\n- **Passkey-first Authentication**: Utilizes Corbado's authentication service for secure user login.\r\n- **Session management**: Uses Corbado's session management to display content based on the user's authentication status.\r\n\r\n## How to Use\r\n\r\n### Step 1: Clone the Repository\r\n\r\nClone this repository to your local machine by running:\r\n\r\n```sh\r\ngit clone https://github.com/corbado/example-passkeys-python-flask\r\n\r\n```\r\n\r\n### Step 2: Create .env File\r\n\r\nTo configure the credentials, you will need to create a `.env` file with your `Project ID` and `API secret` from Corbado:\r\nTo get your `Project ID` and `API secret` visit your [Corbado developer panel](https://app.corbado.com/?technology=passkeys\u0026framework=Flask#signup-init).\r\n\r\nPlease refer to the [Corbado docs](https://docs.corbado.com/overview/welcome) for more details on obtaining the\r\nnecessary credentials and integrating Corbado authentication in your application.\r\n\r\n```sh\r\nPROJECT_ID=\u003cyour-project-id\u003e\r\nAPI_SECRET=\u003cyour-api-secret\u003e\r\n```\r\n\r\n### Step 3: Run the Project\r\n\r\nUse the following command to run the project in a docker container:\r\n\r\n```sh\r\ndocker compose up\r\n```\r\n\r\nOpen your browser and navigate to `http://localhost:3000` to view the application.\r\n\r\nCaution: On `http://127.0.0.1:3000` passkeys will not work!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fexample-passkeys-python-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorbado%2Fexample-passkeys-python-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fexample-passkeys-python-flask/lists"}