On an unrelated note I am making my request to /auth/rest/realms/myRealm/account using jquery's ajax method. This is because I tried using the keycloak.js from /auth/js/keycloak.js but I get a realm missing error even with the keycloak.json being the following:
{
"realm": "Sechrist Blog",
"realm-public-key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArqtGy/VqwnQnqrlmX8F3qjIf3/lM4NtytuWOsJqR/gpMqrHMEHK5Yf44rZT7lokO5VIJzW0+Jii11NU2+sQlwviiBHM+Kr2wBzJW3gCkYpAv6DrgkxbBoNExqa2LNiFvuL1fWscrkCbPsCwUSSjgjY1DO02PmIne/gE9dgD+BGbMuOniwSpkLE4CP1dG+0RupR1bxTU/17Xhr5c77VCIKT8ojxCnNCpSC5XrqDnkNqY8Ok175Iz3IOPt99Mxre8ayZosxXVJhatLoDdOGmoNtHScgmaNMP/gMNvon/pkvZYPBzEufB4fhTws2Yvi5fbShgrKumVyG1+Z5VqvqIA4BQIDAQAB",
"ssl-not-required": true,
"resource": "Blog",
"credentials": {
"secret": "mSecret"
}
}