Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(jans-linux-setup): load agama test data #2733

Closed
jgomer2001 opened this issue Oct 26, 2022 · 4 comments · Fixed by #2749 or #3313
Closed

test(jans-linux-setup): load agama test data #2733

jgomer2001 opened this issue Oct 26, 2022 · 4 comments · Fixed by #2749 or #3313
Assignees
Labels
area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-linux-setup Component affected by issue or PR

Comments

@jgomer2001
Copy link
Contributor

jgomer2001 commented Oct 26, 2022

When the installer loads test data (-t switch), the following is required:

  1. Import this ldif file. Preliminar rendering is required, i.e. fill the %(hostname)s placeholder
  2. Copy all files and folders found at https://github.com/JanssenProject/jans/tree/main/agama/engine/src/test/resources/templates into /opt/jans/jetty/jans-auth/agama/ftl/
  3. Modify json content of attribute jansConfDyn in ou=jans-auth,ou=configuration,o=jans so that Agama configuration section looks like:
"agamaConfiguration": {
    "disableTCHV": true,
    "enabled": true,
    ... the rest as is
}
  1. Create a file /opt/jans/jans-setup/output/test/jans-auth/config-agama-test.properties based on this template:
#The URL of your Jans installation
server=https://%(hostname)s

clientId=BADA-BADA

custParamName=customParam1
@mo-auto mo-auto added area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-linux-setup Component affected by issue or PR labels Oct 26, 2022
@jgomer2001
Copy link
Contributor Author

All perfect but I forgot one step:

  1. Set jansEnabled=TRUE for agama script: inum=BADA-BADA,ou=scripts,o=jans

@devrimyatar
Copy link
Contributor

Done ebc80d4

@jgomer2001
Copy link
Contributor Author

Hi @devrimyatar , recently we had to move agama inside jans-auth-server folder, can you please update the code so that files are grabbed now from https://github.com/JanssenProject/jans/tree/main/jans-auth-server/agama/engine/src/test/resources/templates

This is regarding point no. 2 of this issue description

@jgomer2001
Copy link
Contributor Author

jgomer2001 commented Dec 21, 2022

Hi @devrimyatar , there is a new requirement:

we need to copy the directories found under
https://github.com/JanssenProject/jans/tree/main/jans-auth-server/agama/engine/src/test/resources/libs to /opt/jans/jetty/jans-auth/agama/scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-linux-setup Component affected by issue or PR
Projects
None yet
3 participants