laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.
https://laravel.com/docs/socialite
MIT License
5.55k stars 939 forks source link

[5.x] Add Slack OpenID provider #704

Closed maartenpaauw closed 5 months ago

maartenpaauw commented 5 months ago

This pull request adds a separate Slack OpenID provider. It follows the entire auth flow, documented by Slack at: https://api.slack.com/authentication/sign-in-with-slack#implementation

The name of the provider class and retrieving configuration is inspired based on the LinkedIn OpenID provider.

To try the new provider out, you have to create a Slack application with the user scopes openid, profile and email.

This pull request closes issue #702

maartenpaauw commented 5 months ago

@driesvints You're welcome. I just converted this PR to draft to add some tests.

driesvints commented 4 months ago

Thanks @maartenpaauw. We'd also appreciate a PR to the docs!