November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Willemvs,
Have you had such the following lines of code at the bottom in Startup.cs file
//// Episerver Content API Authorization
app.UseContentApiIdentityOAuthAuthorization<ApplicationUserManager<ApplicationUser>, ApplicationUser>(new ContentApiOAuthOptions()
{
RequireSsl = false
});
Thank you. I have managed to get it up and running using the code you provided.
Hi Willemvs,
For more information about configuration, please visit Content Delivery Api Doc
Hiya Folks,
I'm currently in the process of figuring out how to work with the episerver content delivery API, and have added that package to a simple test project (build from an empty project), only using the episerver cms (no search, commerce or anything).
Now if i access the /api/episerver/v2.0/site from a browser after logging in on the cms, I get a JSON containing quite some info. However when I access query for the same thing using postman or a browser that has not been logged in to the CMS I get a JSON containing only an Unauthorized error. Seems to me I should be able to fix this querying /api/episerver/auth/token to get an authorization token, yet when I try that I get an 404 error page (in html).
Does anyone know what I am missing or why i cannot get to auth/token?
PS: I do have Episerver.ContentDeliveryApi.OAuth in my references (Used nuget to install Episerver.ContentDeliveryApi)