firebase-authentication类型的电子邮件/密码凭据通过HTTPS发送



我使用Firebase教程将Firebase-authentication类型的电子邮件/密码与我的Android应用程序集成在一起。对于登录阶段,我正在使用" signWitheMailandPassword(字符串电子邮件,字符串密码("功能。我的问题是,凭据是通过安全频道(HTTP(发送的,还是以任何方式加密在发送到Firebase-auth服务器之前进行加密。阅读文档,我尚未找到有关HTTPS使用的任何规范,也没有找到任何阅读功能描述。

这是我的身份验证功能

private FirebaseAuth mAuth=FirebaseAuth.getInstance();
private void signIn(String email, String password) {
        Log.d("Log in", "signIn:" + email);

        //showProgressDialog();
        // [START sign_in_with_email]
        mAuth.signInWithEmailAndPassword(email, password)
                .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
                    @Override
                    public void onComplete(@NonNull Task<AuthResult> task) {
                        if (task.isSuccessful()) {
                            // Sign in success, update UI with the signed-in user's information
                            Log.d("Sign in success!", "signInWithEmail:success");
                            Intent main2 = new Intent(getApplicationContext(),Main_activity_2.class);
                            startActivity(main2);
                        } else {
                            // If sign in fails, display a message to the user.
                            Log.w("Failure:", "signInWithEmail:failure", task.getException());
                            Toast.makeText(getApplicationContext(),"Authentication failed!",Toast.LENGTH_SHORT).show();
                            //updateUI(null);
                        }

                    }
                });
        // [END sign_in_with_email]
    }

和功能调用:

final TextView email = findViewById(R.id.email); 
final TextView pass = findViewById(R.id.passwd); 
signIn(email.getText().toString(), pass.getText().toString());

该请求是通过安全通道(HTTPS(发送的。这是用于电子邮件/密码登录的确切的REST API。

最新更新