Skip to content

Commit

Permalink
Fix OpenID auth
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn committed Apr 16, 2018
1 parent cb5db51 commit 097910b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth</summary>
<description><![CDATA[Make possible create users and login via OAuth]]></description>
<version>1.2.0</version>
<version>1.2.1</version>
<licence>agpl</licence>
<author mail="zorn7@yandex.ru" homepage="https://github.com/zorn-v/nextcloud-social-login">Zorn</author>
<namespace>SocialLogin</namespace>
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function openid($provider)
throw new \InvalidArgumentException(sprintf('Unknown OpenID provider "%s"', $provider));
}
$config['openid_identifier'] = $idUrl;
$auth = new OpenID($config, null, $this->storage);
$adapter = $auth->authenticate();
$adapter = new OpenID($config, null, $this->storage);
$adapter->authenticate();
$profile = $adapter->getUserProfile();
return $this->login($uid, $profile);
}
Expand Down

0 comments on commit 097910b

Please sign in to comment.