A tale of Trello and Laravel Socialite

Introducing Laravel Socialite

$config = new \SocialiteProviders\Manager\Config("client_id", "secret", "http://yourdomain.com/api/redirect");return Socialite::driver('github')->setConfig($config)->redirect();

The Good

composer require socialiteproviders/github

The Bad

  1. GitHub returned no refresh_token and no expires_in because the tokens apparently never expire, I had to accommodate for that.
  2. Socialite does handle the OAuth grant flow, but it does not offer refreshing tokens.

The Ugly

The hell of Socialite and OAuth 1

An unknown application

Dynamic config? Nope

Last but not least: Hashtag #Hashtag

https://my.application.com/oauth/trello#token=&error=Token%20request%20rejected

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Analysis of Apple Support Tweets

How to add Google Maps in a flutter app in one click

How to Write Data Processing Application in FS2

Embrace the power of Redshift with RDS Postgres

Coding Feed-Forward Neural Networks in Kotlin (or Android)

Agile Comedy, Momofuku Ko, and Making Amazing Things Happen

The Professional Product Owner — Leveraging Scrum as a Competitive Advantage

ARTH-TASK 7.2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
CodingKiwi

CodingKiwi

More from Medium

Static config variables on a Laravel project

How to Enable and Disable Debug Mode in Laravel

Laravel Eloquent relationships have a bunch of “with” methods you might not know about.

How to update a mysql column’s data type for an already migrated Table in PHP