Recently we have created a new client, we copied all the old configuration, which used delegation to use LAYER API, and it worked fine. After the creation of the new client we noticed that delegation was deprecated for new clients. What should we do now to keep on using Layer, as its not working anymore and this is huge problem for us. Our configuration is actually like this:
client.on('challenge', (evt) => {
var getIdentityToken = (nonce, callback) => {
var data = {
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"target": CONFIG.auth.clientID,
"id_token": Auth.token(),
"api_type": "layer",
"scope": "openid",
"client_id": CONFIG.auth.clientID,
"nonce": nonce
};
$http
.post(`https://${CONFIG.auth.domain}/delegation`, data)
.then((response) => callback(response.data.id_token));
};
getIdentityToken(evt.nonce, (identityToken) => {
evt.callback(identityToken);
});
});
We are getting a 403
calling POST https://wolla.auth0.com/delegation
. We need an answer ASAP as the production instance is depending on this.