Skip to content

Commit ea84483

Browse files
feat(hackathon): Add Authentication with Bitbucket
1 parent 97c563f commit ea84483

File tree

7 files changed

+69
-5
lines changed

7 files changed

+69
-5
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
use App\Http\Requests;
8+
use App\Http\Controllers\Controller;
9+
10+
class FoursquareController extends Controller
11+
{
12+
//
13+
}

app/Providers/EventServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class EventServiceProvider extends ServiceProvider
1515
protected $listen = [
1616
'SocialiteProviders\Manager\SocialiteWasCalled' => [
1717
'SocialiteProviders\LinkedIn\LinkedInExtendSocialite@handle',
18+
'SocialiteProviders\Foursquare\FoursquareExtendSocialite@handle',
1819
'SocialiteProviders\Instagram\InstagramExtendSocialite@handle',
1920
],
2021
'event.name' => [

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"lob/lob-php": "^1.6",
2121
"vluzrmos/slack-api": "^0.4.6",
2222
"vinkla/facebook": "^2.0",
23-
"linkedinapi/linkedin": "^1.1"
23+
"linkedinapi/linkedin": "^1.1",
24+
"socialiteproviders/foursquare": "^1.1"
2425
},
2526
"require-dev": {
2627
"fzaninotto/faker": "~1.4",

composer.lock

Lines changed: 39 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/services.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
'redirect' => env('GITHUB_CALLBACK_URL')
5454
],
5555

56+
'bitbucket' => [
57+
'client_id' => env('BITBUCKET_CLIENT_ID'),
58+
'client_secret' => env('BITBUCKET_CLIENT_SECRET'),
59+
'redirect' => env('BITBUCKET_CALLBACK_URL')
60+
],
61+
5662
'google' => [
5763
'client_id' => env('GOOGLE_CLIENT_ID'),
5864
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
@@ -71,9 +77,14 @@
7177
'redirect' => env('LINKEDIN_CALLBACK_URL')
7278
],
7379

80+
'foursquare' => [
81+
'client_id' => env('FOURSQUARE_KEY'),
82+
'client_secret' => env('FOURSQUARE_SECRET'),
83+
'redirect' => env('FOURSQUARE_CALLBACK_URL'),
84+
],
85+
7486
'slack' => [
7587
'token' => env('SLACK_TOKEN')
7688
]
7789

78-
7990
];

resources/views/api/foursquare.blade.php

Whitespace-only changes.

resources/views/auth/login.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<a href="/auth/google" class="btn btn-block btn-google btn-social"><i class="fa fa-google-plus"></i>Sign in with Google</a>
4646
<a href="/auth/github" class="btn btn-block btn-github btn-social"><i class="fa fa-github"></i>Sign in with GitHub</a>
4747
<a href="/auth/linkedin" class="btn btn-block btn-linkedin btn-social"><i class="fa fa-linkedin"></i>Sign in with LinkedIn</a>
48-
<a href="/auth/instagram" class="btn btn-block btn-instagram btn-social"><i class="fa fa-instagram"></i>Sign in with Instagram</a>
48+
<a href="/auth/foursquare" class="btn btn-block btn-foursquare btn-social"><i class="fa fa-foursquare"></i>Sign in with Foursquare</a>
49+
<a href="/auth/bitbucket" class="btn btn-block btn-bitbucket btn-social"><i class="fa fa-bitbucket"></i>Sign in with Bitbucket</a>
4950
</div>
5051
@stop

0 commit comments

Comments
 (0)