In the page to obtain a JWT, the jQuery code snippet looks like this:
var settings = {
"async": true,
"crossDomain": true,
"url": "https://xyz.auth0.com/oauth/token",
"method": "POST",
"headers": {
"content-type": "application/json"
},
"data": "{\"client_id\":\"...\",\"client_secret\":\"...\",\"audience\":\"...\",\"grant_type\":\"client_credentials\"}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Is it safe to expose client_id
, client_secret
, and audience
on the HTML page(s) of production applications?