Skip to content

Commit

Permalink
Update Slack docs (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
atymic authored Apr 17, 2024
1 parent 7e850ac commit 55ab757
Showing 1 changed file with 11 additions and 7 deletions.
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

0 comments on commit 55ab757

Please sign in to comment.