How do i authenticate to the Content Delivery API ...
# help-with-umbraco
n
Can someone help me on my way? I created an API, an UmbracoApiController, with the [UmbracoMemberAuthorize] attribute. I Configured swagger to be able to authorize Everything seems to be in place and to work. But how do i authenticate with Swagger, or with Postman, or whatever? when i go to https://localhost/umbraco/swagger, i can see the swagger api, and when i want to authenticate, i have to fill in a client_id and a client_secret. But i have no idea where to get those? https://cdn.discordapp.com/attachments/1242595241077375058/1242595241219850310/image.png?ex=664e687f&is=664d16ff&hm=725f3c4adc068b9f71b6a1a0688cf566f11aabbd9de24c86de6bb9a52b3f319d&
d
Hey there, if you just press the authorize button, you're sent to the login page where you can log in to get a token
n
Not really, i am redirected and its an invalid request since he needs the client_id error:invalid_request error_description:The mandatory 'client_id' parameter is missing. error_uri:https://documentation.openiddict.com/errors/ID2029
k
Is
UmbracoMemberAuthorize
really right here? Is the delivery API going to be used by a SPA with only signed-in members? Or in a different way?
d
ah sorry, I assumed this was the U14 backoffice
s
I can't get this dialog to appear, but I am for sure not an expert in the delivery api architecture (yet) I have been able to find the clientId though
umbraco-member
But for standard non protected content, you should not have to authorize against the delivery api.
Unless you disable public access, but then you have to supply an api key you configure in the appsettings yourself
127 Views