Links

connect

Tags: #naasauth #naas #auth #operations #snippet
Author: Maxime Jublou
Description: Naas Auth - Connect is a notebook that allows users to securely authenticate and connect to their Naas account.

Input

Import library

from naas_drivers import naasauth

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.
# naasauth.connect(token="yourjupyterhubtoken")
# naasauth.connect("yourjupyterhubtoken")
naasauth.connect()

Output

Display result

naasauth.access_token
naasauth.headers