flagflag  
31: 2021-08-30 (Mon) 11:52:02 iseki source 32: 2021-09-04 (Sat) 00:14:15 iseki source
Line 114: Line 114:
 136  136
-**** LTIモジュール [#m4467ad6] +**** [[LTI]] モジュール [#m4467ad6]
-***** Learning Tools Interoperability [#lde959fa] +
-- https://github.com/jupyterhub/ltiauthent​icator+
-- 既にインストールされている ltiauthenticator だと Moodle にログインできない. 
--- "Moodleと Jupyter Notebookの 連携 によるプログラミング 教育環境 の 構築" 石坂徹,桑田喜隆, et. al., Moodle Moot Japan 2019 Proceedings (2019), pp.32-37 
---- /usr/local/anaconda/envs/jupyterhub/lib/​python3.8/site-packages/ltiauthenticator​/__init__.py 
- 152            # Before we return lti_user_id, check to see if a canvas_custom_user_id was sent. 
- 153            # If so, this indicates two things: 
- 154            # 1. The request was sent from Canvas, not edX 
- 155            # 2. The request was sent from a Canvas course not running in anonymous mode 
- 156            # If this is the case we want to use the canvas ID to allow grade returns through the Canvas API 
- 157            # If Canvas is running in anonymous mode, we\'ll still want the \'user_id\' (which is the `lti_user_id``) 
- 158 
- 159            canvas_id = handler.get_body_argument('custom_canvas​_user_id', default=None) 
- 160 +          product_code = handler.get_body_argument('tool_consumer​_info_product_family_code', default=None) 
- 161 
- 162            if canvas_id is not None: 
- 163                user_id = handler.get_body_argument('custom_canvas​_user_id') 
- 164 +          elif 'moodle' in product_code: 
- 165 +                user_id = handler.get_body_argument('ext_user_user​name') 
- 166            else: 
- 167                user_id = handler.get_body_argument('user_id') 
- 168 
- 
-***** jupyterhub_config.py [#c6db4f7a] 
- c.JupyterHub.authenticator_class = 'ltiauthenticator.LTIAuthenticator' 
- c.LTIAuthenticator.consumers = { 
-     os.environ['LTI_CLIENT_KEY']: os.environ['LTI_CLIENT_SECRET'] 
- } 
-- キーは二つとも openssl rand -hex 32 で生成. 
--- openssl rand -hex 32 
-#br 
- 
-***** Moodle 側 [#sd9e4f7f] 
-- 管理者‘IDで,「サイト管理」=> 「プラグイン」=> 「外部ツール:ツールを管理する」(=>「ツールを手動設定する」) 
--- デフォルト起動コンテナは「新しいウィンドウ」にする. 
- 
-- [[Hack>Moodle/Moodle-LTI]] 
-#br 
- 
-***** error : module 'oauthlib.oauth1.rfc5849.signature' has no attribute 'signature_base_string' [#l6c7a130] 
-- ライブラリが足りない 
--- conda install oauthlib 
-#br 
- 
-***** 欠点:利点? [#w4038708] 
-- %%一度 Moodle 経由でログインすると,ブラウザがアカウントを覚えているらしく,次回からは Moodle 経由で無くともログイン可能.%% ログアウトすればOK 
-- その他の一般ユーザ認証と併用できない. 
#br #br
Line 225: Line 178:
- DockerSpawner を使用すると,作業ディレクトリが /home/jovyan/work 固定なのだが? - DockerSpawner を使用すると,作業ディレクトリが /home/jovyan/work 固定なのだが?
- c.DockerSpawner.notebook_dir 辺りをいじっても変化しない? - c.DockerSpawner.notebook_dir 辺りをいじっても変化しない?
-- 皆考えることは一緒:https://github.com/jupyter/docker-stacks/issu​es/358+- https://github.com/jupyter/docker-stacks/issu​es/358
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

48 user(s) are online (4 user(s) are browsing xpwiki)

Members: 0
Guests: 48

more...

Access Counter

Today : 5544554455445544
Yesterday : 1361113611136111361113611
Total : 2364395123643951236439512364395123643951236439512364395123643951
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com