Trying to add Google Authentication to AEM 6.5
Hi,
I'm trying to use google's authentication jar file and including the following maven entries:
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<version>1.24.0</version>
</dependency>
This compiles on my IDE no issues, however after deploying to my dev environment, I run into a, 'cannot be resolved' issue on my bundle that requires this dependency.
How do I resolve these dependencies?
I have so far tried creating a bundle via the instructions here: https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-17475 but have not had success in getting the oauth2 library imported or referenced in OSGI.
I also tried adding:
<Embed-Dependency>
google-auth-library-oauth2-http
as part of the embed dependency but this still claims it is unable to resolve the library.
I'd like some help in troubleshooting this as I am trying to use the GoogleCredentials to access Google's Vertex API.