Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Angular2应用程序中保护google客户端ID和客户端机密?_Angular_Oauth 2.0_Config_Google Authentication - Fatal编程技术网

如何在Angular2应用程序中保护google客户端ID和客户端机密?

如何在Angular2应用程序中保护google客户端ID和客户端机密?,angular,oauth-2.0,config,google-authentication,Angular,Oauth 2.0,Config,Google Authentication,我正在为我的angular2应用程序使用google身份验证。我正在使用config.js存储google客户端ID和客户端密码。但是用户可以获取config.js数据 我正在寻找一种安全的方法来处理它们。有什么办法可以这样做吗

我正在为我的angular2应用程序使用google身份验证。我正在使用config.js存储google客户端ID和客户端密码。但是用户可以获取config.js数据

我正在寻找一种安全的方法来处理它们。有什么办法可以这样做吗