OAuth 2トラブルシューティング

提供:MoodleDocs
2023年12月17日 (日) 15:03時点におけるMitsuhiro Yoshida (トーク | 投稿記録)による版
移動先:案内検索

作成中です - Mitsuhiro Yoshida (トーク)

トラブルシューティング

「OAuth 2サービス」ページで「ログインを許可する」に赤い×印があります

To get a green tick for Allow login, edit the OAuth 2 service and make sure that the setting 'Show on login page' is ticked. 「ログインを許可する」を緑のチェックに変えるにはOAuth 2サービス設定で「ログインページに表示する」がチェックされていることを確認してください。

OAuth 2認証を有効にした後にコードエラーが表示されるようになりました I obtain a coding error after enabling OAuth 2 authentication

Have you any OAuth 2 plugins for earlier versions installed on your site? If so, you will need to uninstall them in order to use the standard OAuth 2 authentication. あなたのサイトに以前のバージョンの OAuth 2プラグインがインストールされていますか?もしある場合、標準の OAuth 2認証を使用するために プラグインをアンインストール する必要があります。

Facebookを使用したログイン時にエラーメッセージが表示されてしまいます I obtain an error message when attempting to log in using Facebook

The error message 'The user information returned did not contain a username and email address. The OAuth 2 service may be configured incorrectly.' is most likely because the user's Facebook account was created using a mobile number. 「返されたユーザ情報にユーザ名およびメールアドレスが含まれていません。OAuth 2サービスが正しく設定されていない可能性があります」というエラーメッセージはユーザのFacebookアカウントが携帯電話番号を使って作成されたことが原因である可能性が高いと思われます。

The solution is for the user to first log in to Facebook and add a username and email address there. ユーザの解決策はまずフェイスブックにログインしてユーザ名およびメールアドレスを追加することです。

OAuth 2サービスにログインした場合、「必須パラメータ (コード) が不足しています」というエラーが表示されます I see a "required paramenter (code) was missing" error after logging into the OAuth 2 service

The error message 'A required parameter (code) was missing' can be caused by a mis-configured webserver.エラーメッセージ「必須パラメータ (コード) がありません」」は、ウェブサーバの設定ミスで発生する場合があります。 OAuth 2 relies on long tokens passed as url parameters, and some webserver configurations will prevent this from working. See http://www.php.net/manual/en/reserved.variables.get.php#101469 for one possible solution.OAuth 2はURLパラメータとして渡される長いトークンに依存しており、ウェブサーバの設定によってはこれが動作しないことがあります。解決策のひとつとして次をご覧ください: https://www.php.net/manual/ja/reserved.variables.get.php

admin/tool/oauth2/issuers.phpページでGoogleおよびFacebookに緑色のチェックマークがついていますが、サーバのログインページにボタンが表示されません I have all green checkmarks on my /admin/tool/oauth2/issuers.php page for Google & Facebook but no buttons show on my servers login page

It was discovered that in a fresh install of Moodle 3.4 (probably for security reasons) that the plugin configuration for OAuth2 was in a disabled state. Moodle 3.4の新規インストールにおいて、恐らくセキュリティ上の理由から、OAuth2プラグイン設定が無効にされていることが発見されました。Go to your page for Site Administration - Plugins - Authentication - Manage authentication (/admin/settings.php?section=manageauths), and enable the record for OAuth2, then optionally tweak your settings for that record.「サイト管理 - プラグイン - 認証 - 認証管理」(/admin/settings.php?section=manageauths)のページに移動して、OAuth2のレコードを有効にしてください。あなたはそのレコードの設定を自由に微調整できます。