Forum Discussion

gowdhaman008's avatar
gowdhaman008
New Contributor II
3 years ago

Amazon Cognito OAuth2 Rest configuration

Hi,

Wanted to configure OAuth2 REST account to be configured in Snaplogic. Underlaying the REST calls are deployed in Amazon Cognito. Please check the screenshot below, We have configured all the required parameters, but could not get access token. It is redirecting to new page and access tokens are showing up in URL parameter.

Can someone help us out how to configure AWS Cognito APIs in Snaplogic?

Thanks,
Gowdhaman

  • bfroemling's avatar
    bfroemling
    New Contributor II

    Just tried it again. Still getting the same issues. Anybody have any idea what’s going on?

    • robin's avatar
      robin
      Former Employee

      Hi @bfroemling, could you tell me what version of Java you are using with Maven please (the output of mvn -v will show it)? Currently, we only support Java 8 for developing custom Snaps.

  • bfroemling's avatar
    bfroemling
    New Contributor II
    C:\workspace\snaplogic\DemoSnapPack>mvn -v
    Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T13:41:47-05:00)
    Maven home: C:\Program Files\Maven\apache-maven-3.6.0\bin\..
    Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_192\jre
    Default locale: en_US, platform encoding: Cp1252
    OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
    
  • bfroemling's avatar
    bfroemling
    New Contributor II

    Finally got it to build. I think my issue was due to cross-corruption between Java 8 and Java 10 in the .m2 directory. After wiping out the entire .m2 directory and reinstalling all dependencies, it is now building correctly.

    • robin's avatar
      robin
      Former Employee

      Oh, I’m happy to hear that - thanks for that update.