Skip to content

Commit fcb814b

Browse files
authored
1 parent 2542c28 commit fcb814b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cli/src/auth.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
use crate::{
7-
constants::{get_default_user_agent, IS_INTERACTIVE_CLI, PRODUCT_NAME_LONG},
7+
constants::{get_default_user_agent, APPLICATION_NAME, IS_INTERACTIVE_CLI, PRODUCT_NAME_LONG},
88
debug, error, info, log,
99
state::{LauncherPaths, PersistedState},
1010
trace,
@@ -84,7 +84,9 @@ impl AuthProvider {
8484

8585
pub fn grant_uri(&self) -> &'static str {
8686
match self {
87-
AuthProvider::Microsoft => "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
87+
AuthProvider::Microsoft => {
88+
"https://login.microsoftonline.com/organizations/oauth2/v2.0/token"
89+
}
8890
AuthProvider::Github => "https://github.com/login/oauth/access_token",
8991
}
9092
}
@@ -673,7 +675,8 @@ impl Auth {
673675
if !*IS_INTERACTIVE_CLI {
674676
info!(
675677
self.log,
676-
"Using Github for authentication, pass the `--provider` option to change this."
678+
"Using Github for authentication, run `{} tunnel user login --provider <provider>` option to change this.",
679+
APPLICATION_NAME
677680
);
678681
return Ok(AuthProvider::Github);
679682
}

0 commit comments

Comments
 (0)