Skip to content

Commit

Permalink
Changed prompt message
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gonzalez-Martin committed Jul 26, 2022
1 parent 7c88ed0 commit 8fb5a6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions python/seldon_deploy_sdk/auth/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ def _use_authorization_code(self):

webbrowser.open_new_tab(request_url)
print(
"Please copy the following URL into a browser to log in.",
"You will be redirected and shown a code to copy and paste here.",
f"\n\n\t'{request_url}'\n\n",
"The following URL should have opened now on a new tab, where you "
"will be able to log in.\n"
"If it hasn't, please copy the following URL into a browser.\n"
"Once you have logged in, you will be redirected and will be shown a code "
"to copy and paste below."
f"\n\n\t{request_url}\n\n"
)
response_code = self._get_response_code()
response_code_query = urlencode({"code": response_code})
Expand Down
9 changes: 6 additions & 3 deletions templates/python/auth/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ def _use_authorization_code(self):

webbrowser.open_new_tab(request_url)
print(
"Please copy the following URL into a browser to log in.",
"You will be redirected and shown a code to copy and paste here.",
f"\n\n\t'{request_url}'\n\n",
"The following URL should have opened now on a new tab, where you "
"will be able to log in.\n"
"If it hasn't, please copy the following URL into a browser.\n"
"Once you have logged in, you will be redirected and will be shown a code "
"to copy and paste below."
f"\n\n\t{request_url}\n\n"
)
response_code = self._get_response_code()
response_code_query = urlencode({"code": response_code})
Expand Down

0 comments on commit 8fb5a6f

Please sign in to comment.