バージョン選択

フォーラム

メニュー

オンライン状況

46 人のユーザが現在オンラインです。 (37 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 46
もっと...

サイト内検索

質問 > その他 > LINEでソーシャルログイン時、"Notice: Undefined index: email_verified "が発生する

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
youme771
投稿日時: 2022/7/4 15:13
対応状況: −−−
新米
登録日: 2022/7/4
居住地:
投稿: 1
LINEでソーシャルログイン時、"Notice: Undefined index: email_verified "が発生する
お世話になります。「ソーシャルログインプラグイン」について質問させてください

[導入プラグイン]
 ソーシャルログインプラグイン for EC-CUBE4
[カスタマイズの有無]
 無し
[現象]

LINEでログインを行う際、以下のようなエラー(ContextErrorException)が発生します。
要因が何であるか、対処法をご教示いただけないでしょうか?

メール認証絡みかな?と思ってはいるのですが、
どう対処してあげればよいのかわかりませんでした。

Auth0の設定で何か必要なのであれば、ご教示いただければと思います。

エラーメッセージ:Notice: Undefined index: email_verified


ContextErrorException
/app/Plugin/SocialLogin4/Security/Authenticator/Auth0Authenticator.php (line 96)

以下抜粋
================
/**
* @inheritDoc
*/
public function getUser($credentials, UserProviderInterface $userProvider)
{
// TODO: Implement getUser() method.
$user = $this->getAuth0Client()
->fetchUserFromToken($credentials);
if (!$user->toArray()['email_verified']) {
throw new AuthenticationException();
}
/** @var Connection $Connection */
$Connection = $this->entityManager->getRepository(Connection::class)
->findOneBy(['user_id' => $user->toArray()["sub"]]);
// 連携済みの場合
if ($Connection) {
$Customer = $this->entityManager->getRepository(Customer::class)
->findOneBy(['id' => $Connection->getCustomerId()]);
return $Customer;
}
/** @var Customer $Customer */
$Customer = $this->entityManager->getRepository(Customer::class)
->findOneBy(['email' => $user->getEmail()]);
// 会員登録していない場合、会員登録ページへ
if (null === $Customer) {
throw new FinishRegistrationException($user->toArray());
}
// 会員登録済みの場合はユーザー識別子を保存
$Connection = new Connection();
$Connection->setUserId($user->toArray()["sub"]);
$Connection->setCustomerId($Customer->getId());
$this->entityManager->persist($Connection);
$this->entityManager->flush();
return $Customer;
}

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » LINEでソーシャルログイン時、"Notice: Undefined index: email_verified "が発生する youme771 2022/7/4 15:13
     Re: LINEでソーシャルログイン時、"Notice: Undefined index: email_verified "が発生する yuh 2022/12/15 13:10

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,286名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.