Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Slack Provider #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
52 changes: 52 additions & 0 deletions src/OAuth2/Provider/Slack.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php

namespace OAuth2\Provider;

use OAuth2\Provider;
use OAuth2\Token_Access;

/*
* Slack OAuth: https://api.slack.com/docs/oauth
*/


/**
* Slack OAuth Provider
*
* @package laravel-oauth2
* @category Provider
* @author Hélder Duarte
*/

class Slack extends Provider {
/**
* @var string provider name
*/
public $name = 'slack';

/**
* @var string the method to use when requesting tokens
*/
protected $method = 'POST';

/**
* Returns the authorization URL for the provider.
*
* @return string
*/
public function url_authorize()
{
return 'https://slack.com/oauth/authorize';
}

/**
* Returns the access token endpoint for the provider.
*
* @return string
*/
public function url_access_token()
{
return 'https://slack.com/api/oauth.access';
}

}