Wiki source code of Collaboratory Python Tools
Last modified by allan on 2022/05/23 22:40
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="jumbotron" %) | ||
2 | ((( | ||
3 | (% class="container" %) | ||
4 | ((( | ||
5 | = clb-py-tools = | ||
6 | ))) | ||
7 | ))) | ||
8 | |||
9 | (% class="row" %) | ||
10 | ((( | ||
11 | (% class="col-xs-12 col-sm-8" %) | ||
12 | ((( | ||
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. | ||
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 | |||
19 | The Authority is "[[https:~~/~~/iam.ebrains.eu/auth/realms/hbp>>https://iam.ebrains.eu/auth/realms/hbp]]. | ||
20 | |||
21 | |||
22 | {{code language="python"}} | ||
23 | from clb_py_tools.iam.client import Client | ||
24 | authority = "https://iam.ebrains.eu/auth/realms/hbp" | ||
25 | Client(authority, client_id, client_secret) | ||
26 | |||
27 | {{/code}} | ||
28 | ))) | ||
29 | |||
30 | (% class="col-xs-12 col-sm-4" %) | ||
31 | ((( | ||
32 | {{box title="**Contents**"}} | ||
33 | {{toc/}} | ||
34 | {{/box}} | ||
35 | |||
36 | {{box title="clb-py-tools"}} | ||
37 | * Source: [[https:~~/~~/github.com/HumanBrainProject/clb-py-tools>>https://github.com/HumanBrainProject/clb-py-tools]] | ||
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]] | ||
39 | {{/box}} | ||
40 | ))) | ||
41 | ))) |