"Inloggen met NexoNect" toevoegen
NexoNect werkt met de standaard OAuth 2.1 / OpenID Connect. Elke site krijgt een eigen Client ID en geheime sleutel via Beheer sites.
1. Adressen
Issuer: https://dodogpmwsuwrofvayluu.supabase.co/auth/v1
Discovery: https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/.well-known/openid-configuration
Authorize: https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/oauth/authorize
Token: https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/oauth/token
Userinfo: https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/oauth/userinfo
Scopes: openid email profile2. Knop
Stuur de bezoeker door naar het authorize-adres met PKCE:
https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/oauth/authorize
?response_type=code
&client_id=CLIENT_ID
&redirect_uri=https://jouwsite.nl/api/public/nexonect/callback
&scope=openid%20email%20profile
&state=RANDOM_STATE
&code_challenge=PKCE_CHALLENGE
&code_challenge_method=S2563. Terugkomen
Op de server van je site: controleer state en wissel de code in. De geheime sleutel staat alleen in de Secrets van die site.
POST https://dodogpmwsuwrofvayluu.supabase.co/auth/v1/oauth/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=CODE
&redirect_uri=https://jouwsite.nl/api/public/nexonect/callback
&client_id=CLIENT_ID
&client_secret=CLIENT_SECRET
&code_verifier=PKCE_VERIFIERHet antwoord bevat een id_token (controleer via de JWKS uit discovery). Het veld sub is het vaste NexoNect-ID van de gebruiker: koppel daarop je eigen account.