Hi Rod
Sorry for the lag, but time is necessary to build the right conf in an
"universitary framework"

I have a persistant error.

Please let me describe you my configuration :
- on a local server ubuntu 16.04, I have moodle 3.4 and jupyter 0.0.8,
configured with https, each working well,
- I installed the script $ sudo pip install jupyterhub-ltiauthenticator
- in the jupyterhub_config.py, I add
 c.LTIAuthenticator.consumers = {
"client_key": "secret"
}
- "client_key" and "secret"  generated by 'openssl rand -hex 32'
- in moodle, i add an External tool configuration with the url '
https://127.0.0.1/hub/lti/launch' and
' Consumer key'=' client_key ' and  ' Shared secret '='secret'

but JupyterHub crashed, here an extract of the jupyter log :
"[I 2018-05-11 16:13:54.584 JupyterHub app:1539] Hub API listening on
http://127.0.0.1:8081/hub/
[W 2018-05-11 16:13:54.585 JupyterHub proxy:415]
    Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require
restarting the proxy.
    Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to
avoid this message.

[I 2018-05-11 16:13:54.586 JupyterHub proxy:458] Starting proxy @
https://jupyter.univexemple.com:443/
[D 2018-05-11 16:13:54.586 JupyterHub proxy:459] Proxy cmd:
['configurable-http-proxy', '--ip', 'jupyter.univexemple.com', '--port',
'443', '--api-ip', '127.0.0.1', '--api-port', '8001', '--error-target', '
http://127.0.0.1:8081/hub/error', '--ssl-key',
'/etc/jupyterhub/jupyter.univexemple.key', '--ssl-cert',
'/etc/jupyterhub/jupyter.univexemple.crt']
[D 2018-05-11 16:13:54.590 JupyterHub proxy:491] Proxy started and appears
to be up
[D 2018-05-11 16:13:54.591 JupyterHub proxy:552] Proxy: Fetching GET
http://127.0.0.1:8001/api/routes
[E 2018-05-11 16:13:54.614 JupyterHub app:1634]
    Traceback (most recent call last):
      File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py", line
1632, in launch_instance_async
        yield self.start()
      File "/usr/local/lib/python3.5/dist-packages/jupyterhub/app.py", line
1580, in start
        yield self.proxy.check_routes(self.users, self._service_map)
      File "/usr/local/lib/python3.5/dist-packages/jupyterhub/proxy.py",
line 294, in check_routes
        routes = yield self.get_all_routes()
      File "/usr/local/lib/python3.5/dist-packages/jupyterhub/proxy.py",
line 589, in get_all_routes
        resp = yield self.api_request('', client=client)
    tornado.httpclient.HTTPError: HTTP 403: Forbidden

[D 2018-05-11 16:13:54.637 JupyterHub application:647] Exiting application:
jupyterhub"

Please tell me where I am wrong.

Regards

Amenokal



<#m_5416336411984364706_m_7596900493213331952_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, May 5, 2018 at 8:21 PM, Rod Norfor <[email protected]> wrote:

> Is the browser blocking the content because of either not having a
> certificate or having a self-signed certificate,
>
> I configured the let's encrypt certificate and didn't have a problem.
>
> Are you creating your own singleuser image with the notebooks in?
>
> Regards.
>
> Rod
>
>
> On Friday, 4 May 2018 16:18:01 UTC+1, amenokal wrote:
>>
>> Thank's Rod for your patience, it's seems it's working, with a frame in
>> the moodle page, but two things :
>> - the browser block the content,
>> - I think there is some tweaks to connect the student to the right
>> notebook.
>> Tell me, & thanks,
>> A.
>>
>> On Fri, May 4, 2018 at 10:40 AM, Rod Norfor <[email protected]> wrote:
>>
>>> They can be whatever you want,
>>>
>>> I used 'openssl rand -hex 32', to generate them, in the same way that
>>> you generate the api token,
>>>
>>> they could probably be the same, but that isn't a good idea....
>>>
>>> and then you use them as the client key and secret when configuring the
>>> moodle external tool ( "client_key": "secret")
>>>
>>> Regards.
>>>
>>> Rod
>>>
>>>
>>> On Friday, 4 May 2018 07:50:29 UTC+1, amenokal wrote:
>>>>
>>>> Hi Rod,
>>>> Thank's for your reply,
>>>> Please :
>>>>        consumers: { "e9b8d32396af626d2c45f860d643ff
>>>> 0dc72a51f1e729e7eeb46f086816a7e8ba":  "a87553942c359c864e0f6e0c16e76d
>>>> cec35e88157e3a4babcd8e394b23d45b91"}
>>>>
>>>> from where come these two strings, the api token of jupyterhub ?
>>>>
>>>> Have a good day,
>>>>
>>>> A
>>>>
>>>>
>>>> On Thu, May 3, 2018 at 8:28 PM, Rod Norfor <[email protected]> wrote:
>>>>
>>>>> If you are running version 0.6, and probably later (but I haven't
>>>>> tried later) of the jupyterhub chart,
>>>>>
>>>>> you need to specify the LTI Client Key and Secret in you chart.yaml
>>>>> you use to deploy:
>>>>>
>>>>> auth:
>>>>>     type: "lti"
>>>>>     lti:
>>>>>        consumers: { "e9b8d32396af626d2c45f860d643f
>>>>> f0dc72a51f1e729e7eeb46f086816a7e8ba":  "a87553942c359c864e0f6e0c16e76
>>>>> dcec35e88157e3a4babcd8e394b23d45b91"}
>>>>>
>>>>> then in moodle configure the external tool activity module to use the
>>>>> Client Key and Secret you specified
>>>>> in the chart.yaml.
>>>>>
>>>>>
>>>>> The url for the jupyter will be domain.name/hub/lti/launch
>>>>>
>>>>>
>>>>> Regards.
>>>>>
>>>>> Rod
>>>>>
>>>>>
>>>>> On Thursday, 3 May 2018 10:43:37 UTC+1, amenokal wrote:
>>>>>>
>>>>>> Hello,
>>>>>> THank you very much !
>>>>>> Who can use this to connect moodle and jupyterhub ?
>>>>>> I need some help to set up.
>>>>>> amenokal
>>>>>>
>>>>>>
>>>>>> On Thursday, January 11, 2018 at 1:15:04 AM UTC+1, Yuvi Panda wrote:
>>>>>>>
>>>>>>> Hello!
>>>>>>>
>>>>>>> A bit late, but am happy to announce an LTI Authenticator for
>>>>>>> JupyterHub! LTI (https://www.imsglobal.org/act
>>>>>>> ivity/learning-tools-interoperability) is popular among many
>>>>>>> educational products, such as Canvas / BlackBoard / Moodle / EdX, etc. 
>>>>>>> This
>>>>>>> authenticator allows sharing authentication information between such
>>>>>>> products and JupyterHub!
>>>>>>>
>>>>>>> You can find documentation + install instructions at
>>>>>>> https://github.com/yuvipanda/jupyterhub-ltiauthenticator. I have
>>>>>>> currently only tested this with EdX, so if anyone else has access to any
>>>>>>> other LTI Provider am happy to help test + fix.
>>>>>>>
>>>>>>> Thanks to UC Berkeley's Data Sciences Division & Berkeley Institute
>>>>>>> of Data Science for support in building this authenticator!
>>>>>>>
>>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Project Jupyter" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/jupyter/8d7de2f9-9e3c-4d50
>>>>> -8cc1-8a3a088dc635%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/jupyter/8d7de2f9-9e3c-4d50-8cc1-8a3a088dc635%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Project Jupyter" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jupyter/c8bf4af6-75b3-45da-9c52-1028fb306bb5%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jupyter/c8bf4af6-75b3-45da-9c52-1028fb306bb5%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/59a11bcd-a046-4740-b33d-06ea41d42d2b%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/59a11bcd-a046-4740-b33d-06ea41d42d2b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CACxyma2%3DMJwKcL%2BiGt59SYM9XY6%2BKZ%3D5CuXUgtkTcKV6Ukw8jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to