-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.php
More file actions
64 lines (58 loc) · 2.21 KB
/
Copy pathservices.php
File metadata and controls
64 lines (58 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* OAuth/Social Login Services Configuration
*
* Configure third-party OAuth providers (Google, Facebook, etc.)
* for social login functionality in the User plugin.
*
* To use Google Sign-In:
* 1. Create OAuth 2.0 credentials at https://console.cloud.google.com
* 2. Add authorized redirect URI: {APP_URL}/oauth/google/callback
* 3. Copy Client ID and Client Secret to .env file
*/
return [
/*
|--------------------------------------------------------------------------
| Google OAuth Configuration
|--------------------------------------------------------------------------
|
| Credentials for Google Sign-In. Create at:
| https://console.cloud.google.com/apis/credentials
|
*/
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID'),
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
// CMS_URL points to the backend (api.horoskopia.eu) where the /oauth routes live;
// APP_URL points to the frontend and would produce a 404 on the Nuxt SSR.
'redirect' => rtrim(env('CMS_URL', env('APP_URL')), '/') . '/oauth/google/callback',
],
/*
|--------------------------------------------------------------------------
| Facebook OAuth Configuration (Optional)
|--------------------------------------------------------------------------
|
| Credentials for Facebook Login. Create at:
| https://developers.facebook.com/apps
|
*/
'facebook' => [
'client_id' => env('FACEBOOK_CLIENT_ID'),
'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
'redirect' => rtrim(env('CMS_URL', env('APP_URL')), '/') . '/oauth/facebook/callback',
],
/*
|--------------------------------------------------------------------------
| GitHub OAuth Configuration (Optional)
|--------------------------------------------------------------------------
|
| Credentials for GitHub OAuth. Create at:
| https://github.com/settings/developers
|
*/
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => rtrim(env('CMS_URL', env('APP_URL')), '/') . '/oauth/github/callback',
],
];