November Happy Hour will be moved to Thursday December 5th.

ServiceAPI AspNET identity

Vote:
 

I'm hoping someone can help with probably a simple problem setting up ServiceAPI in a new site.

I'm trying to set up ServiceAPI to use AspNet Identity (which seems to be the default in a new site), rather than the membership provider. I've been following this link:

 
However when I'm attempting to call the token issuing API with a grant_type of "password", I'm getting an unsupported_grant_type Bad Request back.
Does anyone have any ideas on what I'm doing wrong?
#177051
Apr 03, 2017 15:03
Vote:
 

Do you have a valid certificate for https or have you set the episerver:serviceapi:requiressl appsetting to bypass the security check?

#177059
Apr 03, 2017 17:15
Vote:
 

Can you show your post to get the token here? From the error message it looks like you are sending username/password in the header, not the body of the request

#177117
Apr 04, 2017 9:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.