Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Feb 24, 2024 @ 07:09
    Biagio Paruolo
    0

    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.

  • Thomas 43 posts 123 karma points
    May 13, 2024 @ 13:44
    Thomas
    0

    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

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    May 13, 2024 @ 14:21
    Biagio Paruolo
    0

    Using HasValidApiKey?

  • Thomas 43 posts 123 karma points
    May 13, 2024 @ 22:57
    Thomas
    0

    Yes, here you can validate your access token

Please Sign in or register to post replies

Write your reply to:

Draft