Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

oauth.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return [
  3. 'enabled' => env('STATAMIC_OAUTH_ENABLED', false),
  4. 'email_login_enabled' => true,
  5. 'providers' => [
  6. // 'github',
  7. ],
  8. 'routes' => [
  9. 'login' => 'oauth/{provider}',
  10. 'callback' => 'oauth/{provider}/callback',
  11. ],
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Create User
  15. |--------------------------------------------------------------------------
  16. |
  17. | Whether or not a user account should be created upon authentication
  18. | with an OAuth provider. If disabled, a user account will be need
  19. | to be explicitly created ahead of time.
  20. |
  21. */
  22. 'create_user' => true,
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Merge User Data
  26. |--------------------------------------------------------------------------
  27. |
  28. | When authenticating with an OAuth provider, the user data returned
  29. | such as their name will be merged with the existing user account.
  30. |
  31. */
  32. 'merge_user_data' => true,
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Unauthorized Redirect
  36. |--------------------------------------------------------------------------
  37. |
  38. | This controls where the user is taken after authenticating with
  39. | an OAuth provider but their account is unauthorized. This may
  40. | happen when the create_user option has been set to false.
  41. |
  42. */
  43. 'unauthorized_redirect' => null,
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Remember Me
  47. |--------------------------------------------------------------------------
  48. |
  49. | Whether or not the "remember me" functionality should be used when
  50. | authenticating using OAuth. When enabled, the user will remain
  51. | logged in indefinitely, or until they manually log out.
  52. |
  53. */
  54. 'remember_me' => true,
  55. ];