v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

Applications

Configure a social login provider

PUT/v1/applications/{app_id}/providers/{provider}Henüz kullanılamıyor

Not available yet. mode: platform uses Fox Login's own app (no setup, users see "Fox Login"); Google sign-in already works this way and is turned on or off with PATCH /applications/{app_id}. mode: custom would use the tenant's own app and show its name. Apple, GitHub and Microsoft are planned. Switching Apple between modes changes Apple user IDs: affected users would be emailed and asked to link their account once; progress would be in apple_relink.

Gereken yetki
applications:write
Kimlik doğrulama
Secret key · Organization API key

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

  • providerstringzorunlu

    Değerler: google apple github microsoft

Gövde application/json

  • enabledboolean

  • modestring

    Değerler: platform customVarsayılan: platform

  • credentialsobject

    Only for mode=custom. Google: client_id, client_secret. Apple: team_id, services_id, key_id, private_key. GitHub/Microsoft: client_id, client_secret.

  • notify_affected_usersboolean

    Apple mode switch only

    Varsayılan: true

Yanıtlar

  • 200OKProvider

    Updated provider

    • providerstring

    • enabledboolean

    • modestring

      Değerler: platform custom

    • statusstring

      Değerler: ready connected not_configured error

    • redirect_urlstring

      Örnek: https://auth.seller.anka.io/v1/oauth/apple/callback

    • shown_namestring

      Name users see on the provider screen

      Örnek: Fox Login

    • apple_relinkobject

      3 alan
      • affectedinteger

        Örnek: 128

      • relinkedinteger

        Örnek: 87

      • waitinginteger

        Örnek: 41