Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }