November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi,
Have you found a fix for the issue ? I am having the same.
Thanks,
David
Hi,
Any solution for the error-{"error":"invalid_grant"}, when accesing token through postmann? Thanks
This https://vimvq1987.com/serviceapi-postman-match-heaven/ might help
Once you login in CMS
Grant permission for the Config user to use ServiceApi.
It did worked for me
I've followed instructions for setting up ServiceAPI:
http://world.episerver.com/documentation/Items/Episerver-Service-API/Configuration-and-overview/Setting-up-EPiServerServiceApi/
using (var client = new HttpClient())
{
client.BaseAddress = new Uri("https://cmsservice.polarisdev.com");
var fields = new Dictionary
{
{ "grant_type", "password" },
{ "username", "admin" },
{ "password", "store" }
};
var response = client.PostAsync("/episerverapi/token", new FormUrlEncodedContent(fields)).Result;
...
}
when running and hit the client.PostAsync(), the response is {"error":"invalid_grant"}
The IIS endpoint is localhost, self signed cert is in trusted store, host file is good, connection string is good (mapped to commerce database), confirmed the two EPiServerServiceApi recs are in the tblUserPermission in the CMS database.
If anyone has seen this before and corrected the issue, please respond with fix.