diff --git a/oedb/resources/demo/demo_main.py b/oedb/resources/demo/demo_main.py index 1a971dc..8eb84e4 100644 --- a/oedb/resources/demo/demo_main.py +++ b/oedb/resources/demo/demo_main.py @@ -228,26 +228,28 @@ class DemoMainResource: #
#

OpenStreetMap Authentication

# -# -# -# Login with OpenStreetMap -# -# -#
--> + document.addEventListener('DOMContentLoaded', function() { + fetchEvents(); + + if (window.osmAuth) { + const clientId = document.getElementById('osmClientId').value; + const redirectUri = document.getElementById('osmRedirectUri').value; + const authSection = document.getElementById('auth-section'); + + // Only replace if osmAuth is loaded and has renderAuthSection method + if (osmAuth.renderAuthSection) { + authSection.innerHTML = osmAuth.renderAuthSection(clientId, redirectUri); + } + } + }); + + -->

API Endpoints: