コード例 #1
0
ファイル: GitHub.php プロジェクト: kelunik/chat-main
 public function __construct(Client $client, string $scope = "")
 {
     parent::__construct($client, $scope);
     $this->authorizeUrl = "https://github.com/login/oauth/authorize";
     $this->accessTokenUrl = "https://github.com/login/oauth/access_token";
     $this->clientId = config("api.github.id");
     $this->clientSecret = config("api.github.secret");
     $this->client = $client;
     $this->scope = $scope;
 }
コード例 #2
0
ファイル: StackExchange.php プロジェクト: kelunik/chat-main
 public function __construct(Client $client, string $scope = "")
 {
     parent::__construct($client, $scope);
     $host = config("app.host");
     $this->redirectUri = "http://{$host}/login/stack-exchange";
     $this->authorizeUrl = "https://stackexchange.com/oauth";
     $this->accessTokenUrl = "https://stackexchange.com/oauth/access_token";
     $this->clientId = config("api.stack-exchange.id");
     $this->clientSecret = config("api.stack-exchange.secret");
     $this->client = $client;
     $this->scope = $scope;
 }