{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:28Z","object_id":{"id":1306,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_authentication","title":"mod_authentication","uri":"https:\/\/zotonic.com\/id\/1306"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-09-09T13:48:12Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:12Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-09-09T13:48:12Z","object_id":{"id":2590,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_authentication","title":"Authentication","uri":"https:\/\/zotonic.com\/id\/2590"},"seq":3},{"created":"2026-09-09T13:48:12Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":4},{"created":"2026-09-09T13:48:12Z","object_id":{"id":2652,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_authenticate","title":"Authenticate","uri":"https:\/\/zotonic.com\/id\/2652"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1621,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1621"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_model_model_authentication","page_url":{"en":"https:\/\/zotonic.com\/docs\/1621\/authentication","x-default":"https:\/\/zotonic.com\/docs\/1621\/authentication"},"preview_url":null,"resource":{"version":3988,"pivot_location_lat":null,"title":"authentication","is_authoritative":true,"body":"<p>Model for authentication state and login support checks, including password authentication flow helpers and reminder\/verification actions.<\/p>\n<h2>Available Model API Paths<\/h2>\n<table class=\"table\"><thead><tr><th>Method<\/th><th>Path pattern<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>get<\/code><\/td><td><code>\/authenticate\/password\/...<\/code><\/td><td>Validate username\/password and return auth payload with short-lived <code>auth.token<\/code> and <code>cookie.token<\/code> plus cookie exchange URL.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/password_min_length\/...<\/code><\/td><td>Return configured minimum password length (<code>mod_authentication.password_min_length<\/code>, default <code>8<\/code>).<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/is_one_step_logon\/...<\/code><\/td><td>Return site setting <code>mod_authentication.is_one_step_logon<\/code>.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/is_supported\/rememberme\/...<\/code><\/td><td>Return whether remember-me authentication is supported (requires active database connection).<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/status\/...<\/code><\/td><td>Return authentication status map with <code>is_authenticated<\/code>, <code>user_id<\/code>, <code>username<\/code>, language\/timezone preferences, and auth options.<\/td><\/tr><tr><td><code>get<\/code><\/td><td><code>\/is_rememberme\/...<\/code><\/td><td>Return site setting <code>mod_authentication.is_rememberme<\/code>.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/request-reminder<\/code><\/td><td>Request password-reset reminders for payload <code>email<\/code>; sends reset mail(s) to matching accounts and returns normalized email.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/service-confirm<\/code><\/td><td>Decode and validate signed auth payload (<code>auth<\/code> + <code>url<\/code>) and complete authentication confirmation flow.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/service-confirm-passcode<\/code><\/td><td>Decode and validate signed auth-user payload, verify passcode, then complete authentication confirmation flow.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/send-verification-message<\/code><\/td><td>Validate signed verification token and, if still valid, trigger identity-verification message delivery.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/acceptable-password<\/code><\/td><td>Validate password against min-length\/regex policy and leak-check policy (<code>ok<\/code>, <code>tooshort<\/code>, or <code>dataleak<\/code>).<\/td><\/tr><\/tbody><\/table>\n<p><code>\/+name<\/code> marks a variable path segment. A trailing <code>\/...<\/code> means extra path segments are accepted for further lookups.<\/p>","slug":"authentication","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"dc2e75c66e9c65d4d2ca3f156a0861ff597baef2ba23bd168b2eb99f24fd6982","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":322,"is_a":["meta","category"],"name":"model","title":"Models","uri":"https:\/\/test.zotonic.com\/id\/322"},"doc_source_path":"apps\/zotonic_mod_authentication\/src\/models\/m_authentication.erl","publication_start":"2023-06-24T08:17:52Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_authentication\/src\/models\/m_authentication.erl","pivot_location_lng":null,"doc_source_kind":"model","name":"doc_model_model_authentication","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:28Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_authentication","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"b8c4b2ccdc223257f311968fbd17b2d66f0c4156\n","erlang_module":"m_authentication","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-09-30T09:39:54Z","title_slug":"authentication"},"uri":"https:\/\/zotonic.com\/id\/1621","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1621"}},"status":"ok"}