{"result":{"depiction_url":null,"edges":{"subject":{"objects":[{"created":"2026-09-29T13:07:33Z","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-29T13:07:33Z","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-29T13:07:33Z","object_id":{"id":2589,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_identity_and_accounts","title":"Identity and accounts","uri":"https:\/\/zotonic.com\/id\/2589"},"seq":3},{"created":"2026-09-29T13:07:33Z","object_id":{"id":2590,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_authentication","title":"Authentication","uri":"https:\/\/zotonic.com\/id\/2590"},"seq":4},{"created":"2026-09-29T13:07:33Z","object_id":{"id":2627,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_notification","title":"Notification","uri":"https:\/\/zotonic.com\/id\/2627"},"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":2702,"is_a":["text","documentation","reference","notification"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2702"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_notification_auth_ensure_username_pw","page_url":{"en":"https:\/\/zotonic.com\/docs\/2702\/observe_auth_ensure_username_pw-2","x-default":"https:\/\/zotonic.com\/docs\/2702\/observe_auth_ensure_username_pw-2"},"preview_url":null,"resource":{"version":13,"pivot_location_lat":null,"title":"observe_auth_ensure_username_pw\/2","is_authoritative":true,"body":"<p>Check the current authentication service policy before creating a username\/password\nidentity for a newly signed-up user.<\/p>\n<p>This notification is sent after signup, before ensuring the <code>username_pw<\/code> identity.\nIt allows services to apply their current configuration when a pending signup is\nconfirmed, instead of relying on the flag saved in the original authentication\nrecord. It is not sent when connecting an external identity to an existing user.<\/p>\n<p>Type:<\/p>\n<p><a href=\"\/id\/doc_developerguide_notifications#notification-first\">first<\/a><\/p>\n<p>Return:<\/p>\n<ul><li><code>true<\/code>: ensure that the new user has a username\/password identity.<\/li><li><code>false<\/code>: skip creating a username\/password identity; existing identities are not removed.<\/li><li><code>undefined<\/code>: defer to another observer. If no observer answers, use the\n<code>ensure_username_pw<\/code> flag from the original <code>#auth_validated{}<\/code> record.<\/li><\/ul>\n<p><code>#auth_ensure_username_pw{}<\/code> properties:<\/p>\n<ul><li>service: <code>atom<\/code>, the authentication service that validated the user.<\/li><li>service_uid: <code>binary<\/code>, the user&#39;s identifier supplied by that service.<\/li><\/ul>\n<p>Observers should return <code>undefined<\/code> for services they do not handle.<\/p>","slug":"observe_auth_ensure_username_pw-2","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"9da8f53b968768e4c6ae39a7474f5e97de6d74f51e3e03da04443ae0ebe6b568","is_featured":false,"notification":{"arity":2,"callbacks":[{"arity":2,"name":"observe_auth_ensure_username_pw","signature":"observe_auth_ensure_username_pw\/2","variation":"observe"}],"name":"auth_ensure_username_pw","record":null},"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":1122,"is_a":["meta","category"],"name":"notification","title":"Notifications","uri":"https:\/\/test.zotonic.com\/id\/1122"},"doc_source_path":"apps\/zotonic_core\/src\/behaviours\/zotonic_observer.erl","publication_start":"2026-09-29T13:07:33Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_core\/src\/behaviours\/zotonic_observer.erl","pivot_location_lng":null,"doc_source_kind":"notification","name":"doc_notification_auth_ensure_username_pw","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2026-09-29T13:07:33Z","uri":null,"doc_status":"current","is_dependent":false,"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":"85498256abd162b9bc082d43a90c995844fd4408\n","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-09-29T14:40:06Z","title_slug":"observe_auth_ensure_username_pw-2"},"uri":"https:\/\/zotonic.com\/id\/2702","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2702"}},"status":"ok"}