Try our conversational search powered by Generative AI!

ServiceAPI AspNET identity


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?
Apr 03, 2017 15:03

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

Apr 03, 2017 17:15

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

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.