Delivery Api Protected: access with access token. How to configure U13?
Hi,
I create a NextJS application with AzureB2C authentication and I create some Umbraco API controllers authorized by the Azure access token. All works. The conntent is protected by group.
I wish to use the Delivery Api with the same schema that is the member is authenticated by Azure B2C and then it read the protected content node by group with the access token.
How to? I don't see any docs.
Thanks.
Delivery Api Protected: access with access token. How to configure U13?
Hi,
I create a NextJS application with AzureB2C authentication and I create some Umbraco API controllers authorized by the Azure access token. All works. The conntent is protected by group. I wish to use the Delivery Api with the same schema that is the member is authenticated by Azure B2C and then it read the protected content node by group with the access token. How to? I don't see any docs. Thanks.
Hi, You can implement your own authorization (using your access token) by implementing IApiAccessService from Delivery API.
https://github.com/umbraco/Umbraco-CMS/blob/release-13.2.0/src/Umbraco.Cms.Api.Delivery/Services/ApiAccessService.cs
Using HasValidApiKey?
Yes, here you can validate your access token
is working on a reply...