Wiki source code of Collaboratory Python Tools

Version 14.1 by allan on 2020/07/28 18:05

Hide last authors
villemai 1.1 1 (% class="jumbotron" %)
2 (((
3 (% class="container" %)
4 (((
villemai 7.1 5 = clb-py-tools =
villemai 1.1 6 )))
7 )))
8
9 (% class="row" %)
10 (((
11 (% class="col-xs-12 col-sm-8" %)
12 (((
villemai 7.1 13 The Collaboratory Single Sign On (SSO) is available to application developers who integrate there application using OpenID Connect. In order to help the integration in Python applications, we provide the clb-py-tools library.
villemai 10.1 14
15 In order to use the clb-py-tools, you will need to have an OpenID Connect client. You can find the instructions on registering a client here: [[Community App Developer Guide>>doc:Collabs.collaboratory-community-apps.Community App Developer Guide.WebHome||anchor="HCreatingyourOpenIDConnectclient"]].
16
17 To create a client, you will need the client ID and client secret you obtained when registering the client.
18
villemai 11.1 19 The Authority is "[[https:~~/~~/iam.ebrains.eu/auth/realms/hbp>>https://iam.ebrains.eu/auth/realms/hbp]].
villemai 10.1 20
21
22 {{code language="python"}}
23 from clb_py_tools.iam.client import Client
villemai 12.1 24 authority = "https://iam.ebrains.eu/auth/realms/hbp"
villemai 10.1 25 Client(authority, client_id, client_secret)
26
27 {{/code}}
villemai 1.1 28 )))
29
30 (% class="col-xs-12 col-sm-4" %)
31 (((
32 {{box title="**Contents**"}}
33 {{toc/}}
34 {{/box}}
35
villemai 7.1 36 {{box title="clb-py-tools"}}
37 * Source: [[https:~~/~~/github.com/HumanBrainProject/clb-py-tools>>https://github.com/HumanBrainProject/clb-py-tools]]
allan 12.2 38 * Docs: [[clb-py-tools example notebook>>https://lab.ebrains.eu/hub/user-redirect/tree/drive/Shared with groups/Collaboratory Python Tools/clb-py-tools-example.ipynb]]
villemai 7.1 39 {{/box}}
villemai 1.1 40 )))
41 )))