Expand my Community achievements bar.

AEM 6.5.17 graphql headless consumption

Avatar

Level 7

Hi,

 

Given I have content fragments , graphql queries

How to execute gql queries on backend osgi services? 

Is there any authentication needed (any authentication token etc or service user etc) or just mention URL end point, query, variables to get response?

 

How is this done? given content fragment data, queries present on both author , publish instances.

 

Also, if someone accessing this from a react or angular application , how does this react or angular application gets authenticated? to access headless data.

 

I appreciate inputs.

3 Replies

Avatar

Community Advisor

@sreenu539 Please check the below pic which API(CF API) to use if you are querying in AEM backend service

 
 

Saravanan_Dharmaraj_5-1708485381455.png

Regarding the authentication setup for the persistent queries please check the below blogs

https://techrevel.blog/2023/06/07/securing-content-for-graphql-queries/

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

 

 

 

 

 

 

 

Avatar

Level 7

Hi @Saravanan_Dharmaraj 

 

Thanks for your inputs. I am still using aem 6.5.17 and not AEMaaCS , how could I access graphql end points , do I need to still provide user name, password somewhere?

Avatar

Administrator

@sreenu539 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni