Aric Huang
09/27/2021, 5:32 PMserver
backend. Are there any recommended ways of handling server auth through the CLI, and/or is there a possibility of adding some auth options (e.g. basic auth, bearer token) to the CLI when using server
backend?Kevin Kho
09/27/2021, 5:46 PMAric Huang
09/27/2021, 5:54 PMKevin Kho
09/27/2021, 5:58 PMAric Huang
09/27/2021, 6:00 PMKevin Kho
09/27/2021, 6:04 PMAric Huang
09/27/2021, 6:06 PMKevin Kho
09/27/2021, 6:09 PMAric Huang
09/27/2021, 6:13 PMMichael Hadorn
10/04/2021, 12:25 PMsatisfy any;
allow 123.123.123.123; # ip of your computer which makes the graphql request
Aric Huang
10/04/2021, 7:25 PMprefect
CLI to allow using prefect auth login
to store basic auth credentials (or a bearer token) and send them with each request. I have these changes on a fork here: https://github.com/concreted/prefect/commit/c0c404e760d32b1eef8c3de6eb6eb0e0be67d153Michael Hadorn
10/06/2021, 12:56 PMTadej Svetina
10/10/2021, 10:51 AMClient
instead of the cli. Then you do not need to do any modification to the source code, this suffices:
client = Client(api_server="<http://localhost:4200>")
client.attach_headers({"Authorization": "Basic <base64 encoded user:password>"})
Kevin Kho
10/10/2021, 4:55 PMMarvin
10/10/2021, 4:55 PMAric Huang
10/11/2021, 5:10 PMTadej Svetina
10/11/2021, 5:12 PMAric Huang
10/11/2021, 5:12 PMClient
instead of the CLI - that will be useful 💯Tadej Svetina
10/11/2021, 5:38 PM