I have followed all steps but I had some changes due to my unique setup.
I had unique setup where none of the services were hosted on azure so I used aws azure active directory integration. I used following tutorial to configure AWS Azure Active directory. I followed this tutorial to configure sso for my word addin
After following tutorial I got this below error
getAccessTokenAsync return
result = {
status: "failed",
error: {
code: 7000,
message: "You don't have sufficient permissions for this action.",
name: "permission denied",
}
}