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

    ../../_images/planviewer-applicatie-instellingen.png
  • In MapsAPI: Bewerk OAuth gegevens

    ../../_images/bewerk-oauth-gegevens.png
  • In MapsAPI OAuth: Kies “Auth0” en klik op “Opslaan”

    ../../_images/kies-auth0.png
  • In MapsAPI OAuth: Kopieer “Auth0 - API Identifier”

    ../../_images/copy-api-identifier.png
  • In Auth0: Maak een API aan voor jouw MapsAPI applicatie met de gekopieerde API Identifier

    ../../_images/maak-auth0-api.png
  • In Auth0 API Settings: zet “Allow Offline Access” aan

    ../../_images/allow-offline-access.png
  • In Auth0: Maak Application aan voor de POLKA viewers in jouw MapsAPI applicatie

    ../../_images/maak-auth0-applicatie.png
  • In Auth0 Application Settings: Kopieer Auth0 Client ID & Domain

    ../../_images/copy-client-id-en-domain.png
  • In MapsAPI OAuth: Vul Client ID & Domain in en klik op “Opslaan”

    ../../_images/paste-client-id-en-domain.png
  • In MapsAPI OAuth: Kopieer “Auth0 Application - Allowed Callbacks” & “Auth0 Application - Allowed Origins”

    ../../_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”

    ../../_images/toestaan-redirect-uri-callback-1.png ../../_images/toestaan-redirect-uri-callback-2.png ../../_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

../../_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

../../_images/registration.png

Vul hier je e-mailadres en geldig wachtwoord in.