modal-labs / modal-client

Python client library for Modal
https://modal.com/docs
Apache License 2.0
271 stars 35 forks source link

add session credentials as authorization method #1977

Open rachelspark opened 3 months ago

rachelspark commented 3 months ago

Design doc: https://www.notion.so/modal-com/Code-Execution-Playground-for-Modal-Examples-14b781084a184c8182e10627e27558bf?pvs=4#a6ce613bd667437796df660c6bb2a79f

mwaskom commented 2 months ago

What's the difference between the "session credentials" usecase and the usecase supported by Client.from_credentials?

rachelspark commented 2 months ago

What's the difference between the "session credentials" usecase and the usecase supported by Client.from_credentials?

This is a bit of a hacky way that we're authorizing sandboxes to be run for the code playground without having to create another API token. See discussion in the design doc: https://www.notion.so/modal-com/Code-Execution-Playground-for-Modal-Examples-14b781084a184c8182e10627e27558bf?pvs=4#a6ce613bd667437796df660c6bb2a79f.