connect
Tags: #naas #auth
Author: Maxime Jublou

Input

Import library

1
from naas_drivers import naasauth
Copied!

Model

Function

When calling connect() you can either pass a token generated here or pass nothing. If you choose to pass nothing and that you are running this notebook on app.naas.ai it will use your jupyter token automatically.
1
#naasauth.connect(token="yourjupyterhubtoken")
2
#naasauth.connect("yourjupyterhubtoken")
3
naasauth.connect()
Copied!

Output

Display result

1
naasauth.access_token
Copied!
1
naasauth.headers
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub