Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sherinregi-1
sherinregi-1Accepted solution
Community Advisor
September 25, 2023

Hi @mahesh_tesla 

The link you have attached talks about the oAuth flow which will need browser intervention in order to complete the authentication process.

 

You can go for the below approach with client credential flow if its a company account or a generic account. 

1) Get the access token by sending the clientID and secret . Can be created as a token service and pass the credentials through OSGI configs.

2) Once you get the token you can hit the required API by passing the the authorization and retrieve the response. 

3) same can be retrieved in front end using a servlet or can be dynamically included on the page

https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin%2Fcontext

 

AEM REST API integration example

https://kiransg.com/2021/11/08/aem-rest-service-using-http-client-factory/

 

 

Hope this helps

 

 

 

 

2 replies

sherinregi-1
Community Advisor
sherinregi-1Community AdvisorAccepted solution
Community Advisor
September 25, 2023

Hi @mahesh_tesla 

The link you have attached talks about the oAuth flow which will need browser intervention in order to complete the authentication process.

 

You can go for the below approach with client credential flow if its a company account or a generic account. 

1) Get the access token by sending the clientID and secret . Can be created as a token service and pass the credentials through OSGI configs.

2) Once you get the token you can hit the required API by passing the the authorization and retrieve the response. 

3) same can be retrieved in front end using a servlet or can be dynamically included on the page

https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin%2Fcontext

 

AEM REST API integration example

https://kiransg.com/2021/11/08/aem-rest-service-using-http-client-factory/

 

 

Hope this helps

 

 

 

 

Translate
kautuk_sahni
Adobe Employee
Adobe Employee
September 26, 2023

@mahesh_tesla Did you find the suggestion from @sherinregi-1 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.

Translate
Kautuk Sahni