Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Vault - Another system or application - Connect and Validate the Token

Avatar

Level 2

Hi Everyone,

I am looking for solution integrate or connect the vault( it is another application) where we stored our tokens.

Scenario:

We have created a simple form in AEM, It contains the filed verification code . The user enters the verification code (value) in the input field, the entered verification code(value) needs to be validated against the token stored in the vault. To connect vault user needs to enter there credential's like Username and Password. 

Looking for solution or examples for Vault AEM integration.

Thank you!

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Kummari_DilipKu ,

 

If the token needs to be entered every time:

  • Just writing a simple code to get vault token and verifying against the input value works.
  • You can write a simple servlet ,
    • Call it through the form.
  • Write service for getting credentials from vault.
  • Call service from the servlet and get the token.
  • Compare.

Servlet Reference: https://experienceleague.adobe.com/docs/experience-manager-learn/forms/creating-your-first-osgi-bund... 

 

If the token is only needed once and not changed often

  • Create a custom cloud config
  • Add the form field for the token in the custom config.
  • Compare in the same way through servlets.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/content/implementing/developing/extend... 

 

Thanks.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @Kummari_DilipKu ,

 

If the token needs to be entered every time:

  • Just writing a simple code to get vault token and verifying against the input value works.
  • You can write a simple servlet ,
    • Call it through the form.
  • Write service for getting credentials from vault.
  • Call service from the servlet and get the token.
  • Compare.

Servlet Reference: https://experienceleague.adobe.com/docs/experience-manager-learn/forms/creating-your-first-osgi-bund... 

 

If the token is only needed once and not changed often

  • Create a custom cloud config
  • Add the form field for the token in the custom config.
  • Compare in the same way through servlets.

Reference: https://experienceleague.adobe.com/docs/experience-manager-65/content/implementing/developing/extend... 

 

Thanks.