简体   繁体   中英

How to hide azure clientID and authentication js code from user while using google OAuth?

How to hide azure clientID and authentication js code from user while using google OAuth? The code is always visible to inspection as the javascript code is linked to the html. Im not very good with javascript.

Thanks in advance for your help!

You can't hide it and it's not meant to be a security feature. A consequence of using HTML/JavaScript is that the code is visible.

If you use server directed auth with Google, you won't risk leaking any secrets to the world since you'll have locked down the callback URL for getting the token to your service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM