Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Slack docs #1195

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/Slack/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# ~~Slack~~
# Slack

## Moved to official provider
## Comparison to offical provider

Socialite now has an official slack provider. This provider is deprecated.
Socialite now has an official slack provider, but there are some important differences between the socialite one and the offical one.
Namley, this provider allows you to request both user and bot scopes, and thus get both bot tokens and user tokens. See the section below on that.

https://laravel.com/docs/10.x/socialite#installation

```bash
composer require socialiteproviders/slack
```
https://laravel.com/docs/11.x/socialite#installation

## Installation & Basic Usage

Expand Down Expand Up @@ -63,6 +61,12 @@ You should now be able to use the provider like you would regularly use Socialit
return Socialite::driver('slack')->redirect();
```

This package allows you to request both bot and user scopes. User scopes are set using the standard `->scopes()` method, and bot scopes are via the `->botScopes()` method.

```php
return Socialite::driver('slack')->scopes(['identity.basic', 'identity.email', 'identity.team'])->botScopes(['chat:write','commands'])->redirect();
```

### Returned User fields

- ``id``
Expand Down
Loading