remote-auth.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. return [
  3. 'mastodon' => [
  4. 'enabled' => env('PF_LOGIN_WITH_MASTODON_ENABLED', false),
  5. 'ignore_closed_state' => env('PF_LOGIN_WITH_MASTODON_ENABLED_SKIP_CLOSED', false),
  6. 'contraints' => [
  7. /*
  8. * Skip email verification
  9. *
  10. * To improve the onboarding experience, you can opt to skip the email
  11. * verification process and automatically verify their email
  12. */
  13. 'skip_email_verification' => env('PF_LOGIN_WITH_MASTODON_SKIP_EMAIL', true),
  14. ],
  15. 'domains' => [
  16. 'default' => 'mastodon.social,mastodon.online,mstdn.social,mas.to',
  17. /*
  18. * Custom mastodon domains
  19. *
  20. * Define a comma separated list of custom domains to allow
  21. */
  22. 'custom' => env('PF_LOGIN_WITH_MASTODON_DOMAINS'),
  23. /*
  24. * Use only default domains
  25. *
  26. * Allow Sign-in with Mastodon using only the default domains
  27. */
  28. 'only_default' => env('PF_LOGIN_WITH_MASTODON_ONLY_DEFAULT', false),
  29. /*
  30. * Use only custom domains
  31. *
  32. * Allow Sign-in with Mastodon using only the custom domains
  33. * you define, in comma separated format
  34. */
  35. 'only_custom' => env('PF_LOGIN_WITH_MASTODON_ONLY_CUSTOM', false),
  36. ],
  37. 'max_uses' => [
  38. /*
  39. * Max Uses
  40. *
  41. * Using a centralized service operated by pixelfed.org that tracks mastodon imports,
  42. * you can set a limit of how many times a mastodon account can be imported across
  43. * all known and reporting Pixelfed instances to prevent the same masto account from
  44. * abusing this
  45. */
  46. 'enabled' => env('PF_LOGIN_WITH_MASTODON_ENFORCE_MAX_USES', true),
  47. 'limit' => env('PF_LOGIN_WITH_MASTODON_MAX_USES_LIMIT', 3)
  48. ]
  49. ],
  50. ];