You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for other nextstrain.org-like remotes to the `nextstrain
remote` family of commands, along with support for OIDC/OAuth2
authentication with them to the `nextstrain login` and related commands.
Required IdP and client configuration for OIDC/OAuth2 is
auto-discovered.
One giant pile of changes, because I did not have time to go thru my
typical editing and splitting process before going on leave. :/ Ah well.
Related-to: <nextstrain/private#94>
Log into Nextstrain.org and save credentials for later use.
18
+
Log into Nextstrain.org (and other remotes) and save credentials for later use.
19
19
20
-
The first time you log in, you'll be prompted for your Nextstrain.org username
21
-
and password. After that, locally-saved authentication tokens will be used and
22
-
automatically renewed as needed when you run other `nextstrain` commands
23
-
requiring log in. You can also re-run this `nextstrain login` command to force
24
-
renewal if you want. You'll only be prompted for your username and password if
25
-
the locally-saved tokens are unable to be renewed or missing entirely.
20
+
The first time you log in to a remote you'll be prompted to authenticate via
21
+
your web browser or, if you provide a username (e.g. with --username), for your
22
+
Nextstrain.org password. After that, locally-saved authentication tokens will
23
+
be used and automatically renewed as needed when you run other `nextstrain`
24
+
commands requiring log in. You can also re-run this `nextstrain login` command
25
+
to force renewal if you want. You'll only be prompted to reauthenticate (via
26
+
your web browser or username/password) if the locally-saved tokens are unable
27
+
to be renewed or missing entirely.
26
28
27
-
If you log out of Nextstrain.org on other devices/clients (like your web
28
-
browser), you may be prompted to re-enter your username and password by this
29
-
command sooner than usual.
29
+
If you log out of Nextstrain.org (or other remotes) on other devices/clients
30
+
(like your web browser), you may be prompted to reauthenticate by this command
31
+
sooner than usual.
30
32
31
-
Your password itself is never saved locally.
33
+
Your username and password themselves are never saved locally.
34
+
35
+
positional arguments
36
+
====================
37
+
38
+
39
+
40
+
.. option:: <remote-url>
41
+
42
+
Remote URL to log in to, like the remote source/destination URLs
43
+
used by the `nextstrain remote` family of commands. Only the
44
+
domain name (technically, the origin) of the URL is required/used,
45
+
but a full URL may be specified.
32
46
33
47
options
34
48
=======
@@ -45,7 +59,7 @@ options
45
59
46
60
.. option:: --no-prompt
47
61
48
-
Never prompt for a username/password; succeed only if there are login credentials in the environment or existing valid/renewable tokens saved locally, otherwise error. Useful for scripting.
62
+
Never prompt for authentication (via web browser or username/password); succeed only if there are login credentials in the environment or existing valid/renewable tokens saved locally, otherwise error. Useful for scripting.
49
63
50
64
.. option:: --renew
51
65
@@ -62,4 +76,7 @@ of interactive input and/or command-line options:
62
76
.. envvar:: NEXTSTRAIN_PASSWORD
63
77
64
78
Password for nextstrain.org user. Required if :option:`--no-prompt` is
65
-
used without existing valid/renewable tokens.
79
+
used without existing valid/renewable tokens.
80
+
81
+
If you want to suppress ever opening a web browser automatically, you
0 commit comments