Skip to content

Commit

Permalink
Makes the deviceflow auth URL simplier (#2293)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas J. Fan <[email protected]>
  • Loading branch information
thomasjpfan authored Mar 26, 2024
1 parent 71df7d6 commit 6a63c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flytekit/clients/auth/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ def refresh_credentials(self):
self._verify,
self._session,
)
text = f"To Authenticate, navigate in a browser to the following URL: {click.style(resp.verification_uri, fg='blue', underline=True)} and enter code: {click.style(resp.user_code, fg='blue')}"

full_uri = f"{resp.verification_uri}?user_code={resp.user_code}"
text = f"To Authenticate, navigate in a browser to the following URL: {click.style(full_uri, fg='blue', underline=True)}"
click.secho(text)
try:
# Currently the refresh token is not retrieved. We may want to add support for refreshTokens so that
Expand Down

0 comments on commit 6a63c1f

Please sign in to comment.