connect
Tags: #naasauth #naas #auth #operations #snippet
Description: Naas Auth - Connect is a notebook that allows users to securely authenticate and connect to their Naas account.
from naas_drivers import naasauth
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()
naasauth.access_token
naasauth.headers
Last modified 1mo ago