{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-07-27T11:48:46Z","object_id":{"id":1831,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_oauth2","title":"mod_oauth2","uri":"https:\/\/zotonic.com\/id\/1831"},"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:13Z","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:13Z","object_id":{"id":2565,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_integrator","title":"Integrator","uri":"https:\/\/zotonic.com\/id\/2565"},"seq":2},{"created":"2026-09-09T13:48:13Z","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:13Z","object_id":{"id":2599,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_api_and_integration","title":"API and integration","uri":"https:\/\/zotonic.com\/id\/2599"},"seq":4},{"created":"2026-09-09T13:48:13Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":5},{"created":"2026-09-09T13:48:13Z","object_id":{"id":2681,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_oauth_2_0","title":"OAuth 2.0","uri":"https:\/\/zotonic.com\/id\/2681"},"seq":6}],"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":2183,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2183"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_model_model_oauth2_service","page_url":{"en":"https:\/\/zotonic.com\/docs\/2183\/oauth2_service","x-default":"https:\/\/zotonic.com\/docs\/2183\/oauth2_service"},"preview_url":null,"resource":{"version":3148,"pivot_location_lat":null,"title":"oauth2_service","is_authoritative":true,"body":"<p>Model for OAuth2 service flow helpers, including redirect URL generation and oauth redirect processing.<\/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>\/redirect_url\/...<\/code><\/td><td>Return the absolute callback URL for <code>oauth2_service_redirect<\/code>, used as redirect URI in remote OAuth\/OIDC provider configuration.<\/td><\/tr><tr><td><code>post<\/code><\/td><td><code>\/oauth-redirect<\/code><\/td><td>Process OAuth\/OIDC redirect payload (<code>state_id<\/code>, signed <code>state_data<\/code>, provider <code>qargs<\/code>, session id), validate state\/expiry, exchange authorization code for access token, and return login\/signup continuation result (<code>token<\/code>, <code>confirm<\/code>, <code>need_logon<\/code>, <code>need_passcode<\/code>, <code>set_passcode<\/code>) or an error. No further lookups.<\/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":"oauth2_service","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"4dc4a8abff4b4b5a88f49a165b226f57267afd1b1319290e191d0f0d7a33b0f2","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_oauth2\/src\/models\/m_oauth2_service.erl","publication_start":"2023-01-30T19:23:57Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_oauth2\/src\/models\/m_oauth2_service.erl","pivot_location_lng":null,"doc_source_kind":"model","name":"doc_model_model_oauth2_service","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-07-27T11:48:30Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_oauth2","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":"66cb145eae7002b184e7d8c4c7bba5e53e8248e5\n","erlang_module":"m_oauth2_service","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-02T12:40:37Z","title_slug":"oauth2_service"},"uri":"https:\/\/zotonic.com\/id\/2183","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2183"}},"status":"ok"}