Use the development credentials provider in development by default (#25273)
This PR changes the default credentials provider used in developments builds of Zed to the development credentials provider. Previously this required setting `ZED_DEVELOPMENT_AUTH=1` in order to opt-in to the development credentials provider. This led to confusion for new Zed employees who did not know that this environment variable existed. If you do need to interact with the system keychain for some reason, you can run Zed with: ``` ZED_DEVELOPMENT_USE_KEYCHAIN=1 ``` `ZED_DEVELOPMENT_AUTH` is dead. Long live Zed development auth! Release Notes: - N/A
This commit is contained in:
parent
a8610fbd13
commit
a1223e0646
5 changed files with 43 additions and 30 deletions
|
@ -723,10 +723,10 @@ fn handle_open_request(request: OpenRequest, app_state: Arc<AppState>, cx: &mut
|
|||
|
||||
async fn authenticate(client: Arc<Client>, cx: &AsyncApp) -> Result<()> {
|
||||
if stdout_is_a_pty() {
|
||||
if *credentials_provider::ZED_DEVELOPMENT_AUTH {
|
||||
client.authenticate_and_connect(true, cx).await?;
|
||||
} else if client::IMPERSONATE_LOGIN.is_some() {
|
||||
if client::IMPERSONATE_LOGIN.is_some() {
|
||||
client.authenticate_and_connect(false, cx).await?;
|
||||
} else {
|
||||
client.authenticate_and_connect(true, cx).await?
|
||||
}
|
||||
} else if client.has_credentials(cx).await {
|
||||
client.authenticate_and_connect(true, cx).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue