.. _auth0 instellen: Auth0 ===== instellen MapsAPI/POLKA OAuth & Auth0 ------------------------------------- - Je hebt een MapsAPI Applicatie aangemaakt - Je gebruikt Auth0 Universal Login https://auth0.com/docs/customize/universal-login-pages - Ga naar applicatie instellingen .. image:: images/planviewer-applicatie-instellingen.png - In MapsAPI: Bewerk OAuth gegevens .. image:: images/bewerk-oauth-gegevens.png - In MapsAPI OAuth: Kies "Auth0" en klik op "Opslaan" .. image:: images/kies-auth0.png - In MapsAPI OAuth: Kopieer "Auth0 - API Identifier" .. image:: images/copy-api-identifier.png - In Auth0: Maak een API aan voor jouw MapsAPI applicatie met de gekopieerde API Identifier .. image:: images/maak-auth0-api.png - In Auth0 API Settings: zet "Allow Offline Access" aan .. image:: images/allow-offline-access.png - In Auth0: Maak Application aan voor de POLKA viewers in jouw MapsAPI applicatie .. image:: images/maak-auth0-applicatie.png - In Auth0 Application Settings: Kopieer Auth0 Client ID & Domain .. image:: images/copy-client-id-en-domain.png - In MapsAPI OAuth: Vul Client ID & Domain in en klik op "Opslaan" .. image:: images/paste-client-id-en-domain.png - In MapsAPI OAuth: Kopieer "Auth0 Application - Allowed Callbacks" & "Auth0 Application - Allowed Origins" .. image:: images/copy-redirect-uri.png - In Auth0 Application Settings: Vul "Auth0 Applicatie - Allowed Callbacks" in bij "Allowed Callbacks" en "Auth0 Application - Allowed Origins" bij "Allowed Web Origins" EN bij "Allowed Origins (CORS)" en klik op "Save" .. image:: images/toestaan-redirect-uri-callback-1.png .. image:: images/toestaan-redirect-uri-callback-2.png .. image:: images/toestaan-redirect-uri-callback-3.png De POLKA viewers in jouw MapsAPI applicatie maken nu gebruik van Auth0 als provider Registratie Auth0.com --------------------- Nadat je Auth0 hebt ingesteld zullen je gebruikers zich moeten registreren bij Auth0. Door naar een viewer binnen je applicatie te gaan kom je automatisch op het inlogscherm .. image:: images/start-login.png Klik op "Sign up" of maak gebruik van "Continue with Google" om je met je Google-account te registreren. **Sign up** .. image:: images/registration.png Vul hier je e-mailadres en geldig wachtwoord in.