Menu

Laravel 13 Socialite Login with Slack: Sign in with Slack (OpenID Connect)
📰

Laravel 13 Socialite Login with Slack: Sign in with Slack (OpenID Connect)

DEV Community: authentication·Muhammad Yasir Amin·3 days ago
#z22PX0xI
#devtoauthentication#devto#dev#slack#openid
Reading 0:00
15s threshold

To add Sign in with Slack to Laravel 13, install Socialite, create a Slack app with the Sign in with Slack (OpenID Connect) feature, put its credentials under the slack-openid key in config/services.php and use Socialite::driver('slack-openid') in a redirect route and a callback route. This guide walks through the setup and a safe callback.

Targets: Laravel 13 (PHP 8.3 to 8.5) and laravel/socialite . The Socialite documentation lists both slack and slack-openid ; this article uses slack-openid because it matches Slack's OpenID Connect sign-in. Confirm the driver name against the documentation for your installed version.

Step 1: Install Socialite

composer require laravel/socialite

Enter fullscreen mode

Exit fullscreen mode

Step 2: Create the Slack app

Go to the Slack API site and choose Create New App , then From scratch .

Pick a name and the workspace you will use for development.

Open OAuth & Permissions and add your callback URL under Redirect URLs , for example…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.