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

Remove unused argument, and unused property #95

Merged
merged 3 commits into from
Jun 9, 2020
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
6 changes: 2 additions & 4 deletions src/Security/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
class Auth0Service {

private $api_secret;
private $domain;
private $api_identifier;
private $authorized_issuer;
private $secret_base64_encoded;
Expand All @@ -41,14 +40,13 @@ class Auth0Service {
public function __construct($api_secret, $domain, $api_identifier, $authorized_issuer, $secret_base64_encoded, $supported_algs, CacheHandler $cache = null)
{
$this->api_secret = $api_secret;
$this->domain = $domain;
$this->api_identifier = $api_identifier;
$this->authorized_issuer = $authorized_issuer;
$this->secret_base64_encoded = $secret_base64_encoded;
$this->supported_algs = $supported_algs;
$this->cache = $cache;

$this->authApi = new Authentication($this->domain);
$this->authApi = new Authentication($domain);
}

/**
Expand All @@ -58,7 +56,7 @@ public function __construct($api_secret, $domain, $api_identifier, $authorized_i
*
* @return array info as described in https://auth0.com/docs/users/concepts/overview-user-profile
*/
public function getUserProfileByA0UID($jwt, $a0UID)
lbalmaceda marked this conversation as resolved.
Show resolved Hide resolved
public function getUserProfileByA0UID($jwt)
{
return $this->authApi->userinfo($jwt);
}
Expand Down