Sitecore / ASP.NET-Core-SDK

The official open source ASP.NET Core SDK for Sitecore DXP and XM Cloud.
https://sitecore.github.io/ASP.NET-Core-SDK/
Apache License 2.0
8 stars 2 forks source link

Context Support #18

Open sc-ivanlieckens opened 4 days ago

sc-ivanlieckens commented 4 days ago

Description / Motivation

This allows creating connections to the Edge using the Edge Platform Context instead of an ApiKey. It introduces new extension methods on the SitecoreLayoutClientBuilder called AddGraphQlWithContextHandler for the LayoutService.Client and enhances the extensions on GraphQlConfiguration called AddGraphQlClient for the GraphQL. Introducing ContextId to the SitecoreGraphQlClientOptions as well as by default using the https://edge-platform.sitecorecloud.io/v1/content/api/graphql/v1 endpoint instead of throwing an exception when passing in a ContextId.

Moving forward Sitecore and XM Cloud in particular will greatly rely on the unified Edge Platform endpoint with ContextId making this an important addition to the SDK.

This resolves #10

Testing

Terms