<#1552 Device auth flow / Headless auth> Pull requ...
# flyte-github
a
#1552 Device auth flow / Headless auth Pull request opened by kumare3 TL;DR This PR implements DeviceAuth flow for Pyflyte - which supports headless authentication Config
Copy code
❯ cat ~/.flyte/demo-config.yaml
admin:
  endpoint: dns:///xyz
  authType: DeviceFlow
Sample output
Copy code
❯ pyflyte run --remote hello.py wf

To Authenticate navigate in a browser to the following URL: <https://xyz/activate> and enter code: SCWBRTNH
OR copy paste the following URL: <https://xyz/activate?user_code=SCWBRTNH>

Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication Pending...
Authentication successful!
Go to <https://xyz/console/projects/flytesnacks/domains/development/executions/f8cdccb9a534448e4883> to see execution in the console.
Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☑︎ Unit tests added ☑︎ Code documentation added ☑︎ Any pending items have an associated Issue Tracking Issue flyteorg/flyte#3484 flyteorg/flytekit ✅ All checks have passed 30/30 successful checks