{"id":37425326,"url":"https://github.com/cloudflightio/keycloak-magic-link","last_synced_at":"2026-01-16T06:12:49.643Z","repository":{"id":297209919,"uuid":"996005124","full_name":"cloudflightio/keycloak-magic-link","owner":"cloudflightio","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-17T07:56:43.000Z","size":63,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:51:41.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudflightio.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,"zenodo":null}},"created_at":"2025-06-04T10:15:01.000Z","updated_at":"2025-06-27T03:39:58.000Z","dependencies_parsed_at":"2025-06-04T17:53:20.156Z","dependency_job_id":"17805a58-39d6-4ea9-88e8-bd237cb7f80c","html_url":"https://github.com/cloudflightio/keycloak-magic-link","commit_stats":null,"previous_names":["cloudflightio/keycloak-magic-link"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudflightio/keycloak-magic-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fkeycloak-magic-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fkeycloak-magic-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fkeycloak-magic-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fkeycloak-magic-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudflightio","download_url":"https://codeload.github.com/cloudflightio/keycloak-magic-link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fkeycloak-magic-link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-16T06:12:48.948Z","updated_at":"2026-01-16T06:12:49.633Z","avatar_url":"https://github.com/cloudflightio.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflight keycloak magic link plugin\n\nThe hassle-free magic link plugin. \nThis plugin provides two authenticator implementations for keycloak that use magic links to log in users (passwordless).\n\n\n## Quickstart\n\nThere is an example for the setup which can be found in the `example` folder of this project.\nTo get started run:\n```bash\n./mvnw package\ndocker compose up --build\n```\n\nThe started dev instance of keycloak (http://localhost:8080) comes with a `demo` realm and the \"Magic link Continuation Authenticator\" preconfigured.\n\nYou can access a MailHog instance on http://localhost:8025 to find the emails and login using the demo user with `demo@example.org`.\nTo test the flow you can use the account-console at http://localhost:8080/realms/demo/account .\n\n## Authenticators\nThe typical flow for a passwordless authenticator is:\n\n1) An email input form is shown.\n2) User enters their email address and submits the form.\n3) A special (\"magic\") link is sent to their email address.\n4) They receive the email with the link, click on it and get authenticated.\n5) The used magic link contains a \"magic key\" which acts as a one-time-password.\n\n### \"Normal\" Authenticator\nUsers open the magic link in the same context (same browser) as the original login request.\nThen, the authenticated session continues in the browser/tab that opened after clicking the link.\n\n\n### \"Continuation\" Authenticator\nUsers open the magic link in a different context (different browser/device) as the original login request.\nThen, the authenticated session continues in the original browser/tab that was used for the login\nrequest. Users get not authenticated in browser/tab that opened after clicking the link. This allows\nto log in on the desktop, but receive the email on a mobile device.\n\n\n## Realm Config\nTo make use of this plugin you might want to...\n- customize the UI ([see Templates](#templates))\n- consider Security implications of magic-links ([see Crypthography](#Cryptographic aspects))\n## Templates\nTHere are three ftl files for this plugin:\n\n- `magiclink-email.ftl`\n  - Template for the email\n- `email-login.ftl`\n    - Template for the Login page\n- `wait-for-login.ftl`\n    - Template for after sending the email in the continuation flow\n\n## Cryptographic aspects\nThe \"magic key\" one time password in the links is a type 4 UUID generated using the default java implementation.\nThis \nStatic factory to retrieve a type 4 (pseudo randomly generated) UUID. The UUID is generated using a cryptographically strong pseudo random number generator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflightio%2Fkeycloak-magic-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudflightio%2Fkeycloak-magic-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflightio%2Fkeycloak-magic-link/lists"}